File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Regd JmsSendingMessageHandler (Spring Integration)" Watch "Regd JmsSendingMessageHandler (Spring Integration)" New topic

Regd JmsSendingMessageHandler (Spring Integration)

Meher Singh

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

Joined: Feb 05, 2001
Posts: 17276

"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.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Regd JmsSendingMessageHandler (Spring Integration)
It's not a secret anymore!