activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eharoldw <hwilli...@ezrez.com>
Subject Re: ActiveMQ 4.1.1 Always Serializes Object Messages
Date Fri, 27 Feb 2009 21:06:19 GMT

There are a number of different posts about this same topic, but I have not
seen anyone suggesting a solution or prospects of a fix.

Anyone know if this is on the radar for activemq to fix?

Thanks,
E. Harold Williams
EzRez Software


thammoud wrote:
> 
> Hello,
> 
> We are trying to avoid the serialization overhead when using the vm://
> embedded broker. We set the setObjectMessageSerializationDefered(true)
> and setCopyMessageOnSend(false) options on the connection
> factory. ActiveMQ still serializes in the 
> 
> 
> The following code in ActionMQConnection shows the problem:
> 
> ActiveMQDispatcher dispatcher = dispatchers.get(md.getConsumerId());
>                         if (dispatcher != null) {
>                             // Copy in case a embedded broker is
> dispatching via
>                             // vm://
>                             // md.getMessage() == null to signal end of
> queue
>                             // browse.
>                             Message msg = md.getMessage();
>                             if (msg != null) {
>                                 msg = msg.copy();  <============ A blind
> copy without checking the copy flag.
>                                 msg.setReadOnlyBody(true);
>                                 msg.setReadOnlyProperties(true);
>                                
> msg.setRedeliveryCounter(md.getRedeliveryCounter());
>                                
> msg.setConnection(ActiveMQConnection.this);
>                                 md.setMessage(msg);
>                             }
>                             dispatcher.dispatch(md);
>                         }
> 
> 
> We are using 4.1.1. Looked at svn and 5.x has the same issue. Any help
> will be greatly appreciated.
> 
> Tarek Hammoud
> Enfusion Systems.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/ActiveMQ-4.1.1-Always-Serializes-Object-Messages-tp14896461p22254459.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message