JMS Session related question

S

Sony Antony

I was reading about JMS. I noticed that both Message ( TextMessage say
) and TopicPublisher/QueueSender are both being created from Session.
Why is this so. What was the reason behind this decision by the
standards committee.
1. Is it OK to create a TextMessage from one Session and send it
through a TopicPublisher created from another Session. ( Assume in
this case that both sessions are from the same vendor/provider ). I
understand that everything related to a session will have a
serializing effect. So in this case how will the above be serialized.
with respect to the session that created the TextMessage or with
respect to the session that created the TopicPublisher.

2. Will it work if the 2 sessions in the case above are from 2
different vendors/providers. ( Can I send a TextMessage created by one
vendor's Session through a TopicPublisher that was created from
another vendor's session. ). In other words do I have to duplicate the
TextMessage, in order to write an application that acts like a bridge.

Thanks in advance
--sony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top