Hi,

I should probably provide you with some more context.
The serialized objects are being sent over JMS (not JBoss, Im afraid ;o)
The provider really doesn't do ObjectMessages very well (forces serialization 
to be synchronized - even though its a CPU only task - and I run on a 4 CPU 
machine....).
So, what I have to do is serialize myself and then use the resultant bytes to 
create a byte array (so I can stuff it in a simple JMS MapMessage or whatever).
Each message is "one-shot" and straight in to memory - there is no underlying 
IO - this is completely CPU bound stuff.

So, what I do is:


  | ByteArrayOutputStream baos = new 
ByteArrayOutputStream(someAppropriateInitialSize);
  | ObjectOutputStream out = new ObjectOutputStream(baos) / 
JBossOutputStream(baos);
  | out.write(myObject);
  | out.close();
  | byte[] wireFormat = baos.toByteArray();
  | 

Doing it this way, with the example type I posted above, I see much faster 
results with standard Java serialization than JBoss serialization.

Hope this is of help,

Cheers,

Dave

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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to