activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: Best way to send XML via JMS for POJO Marshalling
Date Thu, 25 Mar 2010 16:15:34 GMT

think XStream ( is much better option then
Castor nowadays. You simply convert your object to XML and send it as XML

You can also use XStream message transformer (, but in your case I
think it's better to do it all by yourself.

Dejan Bosanac -

Open Source Integration -
ActiveMQ in Action -
Blog -

On Thu, Mar 25, 2010 at 4:59 PM, gorca <> wrote:

> I have java producer and consumer. I want to send POJO object between them.
> I
> prefer not use java serialization so other application like .NET can use
> server in future. And it's also good when debugging.
> I think JMS TextMessage with XML content is best way.
> But what is best practice for doing this? I have found many ways and this
> forum had reference to Stomp, but I am not sure if this is right way. I
> also
> found POJO to XML packages like Castor and Hibernate also has that feature:
> My classes are simple and just carry simple data with collections of other
> classes and pimitive types. Objects are small, probably avg 500 bytes and
> worst is 2-3kb. Performance isn't a big concern. Application is ok with
> 10/msg per sec. What do you recommend as best way?
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message