Will a message published in a TopicSession using a TopicConnection be received by a different TopicSession (in another JVM) via the MessageListener if used? Or, is asynchronous message handling only capable in the same JMS Session?

Chris Dupuy

The Session is a way of interacting with the JMS router, and providing transactional support. It does not affect the delivery of messages on topics. You can use a session to post a message to a topic, and still retrieve that message from a MessageListener that is also registered with a session on the same topic regardless of JVM or location. That is one of the benifits of JMS, it allwows distributed message processing, with a variety of delivery options.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.