PDA

View Full Version : Payload object



ballsuen
Jun 24th, 2008, 10:20 PM
I'm going to use JMS for asynchrous processing within my application. If I use Spring Integration, do my payload object need to be Serializable for passing between queue?

iwein
Jun 25th, 2008, 01:48 AM
I'm going to use JMS for asynchrous processing within my application. If I use Spring Integration, do my payload object need to be Serializable for passing between queue?

Spring Integration has an adapter for jms, the same restrictions as with normal Jms apply (you have to be able to fit your payload in one of the message types). If you use ObjectMessage you need to implement Serializable.