[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - JBMESSAGING-1138 - Using Object lists on messages
clebert.suconic@jboss.com
do-not-reply at jboss.com
Fri Nov 2 16:28:12 EDT 2007
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.
Object*Stream is more optimized to those types anyway. And besides if you have graph dependencies on those objects, at this point we are just writing several independent objects. Say if you recover objects from Hibernate and send those over JMS they will all be flat objects after receiving.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101459#4101459
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101459
More information about the jboss-dev-forums
mailing list