aspose file tools*
The moose likes Spring and the fly likes Regd JmsSendingMessageHandler (Spring Integration) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Regd JmsSendingMessageHandler (Spring Integration)" Watch "Regd JmsSendingMessageHandler (Spring Integration)" New topic
Author

Regd JmsSendingMessageHandler (Spring Integration)

Meher Singh
Greenhorn

Joined: Jun 27, 2011
Posts: 1
Does the handleMessage (message) method of JmsSendingMessageHandler have performance issues (abt 6 seconds for a 4 KB msg?)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

"Bubbles" check your Private Messages for an important JavaRanch message.

Not sure what your question is, but the responsibility of the JMS Message Handler is to convert the JMS Message to a Spring Integration Message object type. While the two Message types are very similar in that they have a "body" in JMS it is called the "payload" in SI. And in SI we have a Header, where in JMS it is Properties. If you have a scenario where you are passing through SI, so receive a JMS message on one channel and send it out on another channel with JMS adapters you can configure it to just pass the whole JMS message as a payload in a Spring Integration channel which then takes that payload to the outbound channel to JMS. That would have no overhead as it is just a passthrough.

If you have a complicated JMS message with lots of Properties, it might take a few more milliseconds to convert those into SI Message header values.

Hope that answers your question.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
wood burning stoves
 
subject: Regd JmsSendingMessageHandler (Spring Integration)