[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-1138 - Using Object lists on messages

timfox do-not-reply at jboss.com
Fri Nov 2 16:55:03 EDT 2007


"clebert.suconic at jboss.com" wrote : If you look at StreamUtils we are converting any List (or any Map) to ArrayList and HashMap.
  | 
  | that means if an user is using any special list (such as Vector, or any other custom lists) we are converting them to those maps.
  | 
  | 
  | Because of this, I'm changing MessageSupport::getPayloadAsByteArray to call Streamutils.writeObject with containerTypes=false.

I don't think that's a good fix.If you do that it's going to use Java serialization for other message types too.

We *only* want to use Java serialization for Object messages, not for other messages like map messages.

A better fix is to override getPayloadAsByteArray on the Objectmessage.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101468#4101468

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101468



More information about the jboss-dev-forums mailing list