You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by eharoldw <hw...@ezrez.com> on 2009/02/27 22:06:19 UTC

Re: ActiveMQ 4.1.1 Always Serializes Object Messages

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.