I need to create temporary queues on fly. How is that possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From your jms Queue/TopicSession object: see QueueSession javadoc.
You need to keep the session open for the lifecycle of the temporary queue.
Typical usage is for a client to open a session and put a message on a shared processing queue,using the temporary queue in the reply-to field of the message. eg:(pseudo-code)
The MDB ( or listener that read the shared process queue ) will send the response back to the reply-to queue. If the client is dead for any reason, its session is closed and the queue ceased to exist.