java - How to create a temporary jms queue with jboss? -


I need to make a temporary queue while flying, how is it possible?

See the object object from your JM queue / subject:

You need to keep the session open for floating queue life cycle.

Typical usage opens a session for the client and puts a message on a shared processing queue using the temporary queue in the reply Example: (pseudo-code) for the area of ​​the message

< Pre> line queue = session Create Good ("Share"); Q Response Qi = session. Secure Timeline (); Message message = session.Created message (); Message.setJMSReplyTo (responseQueue); ... session.commit (); ... Message Consumer Response Consumer = Session. Secure Consumers (Response Quinn); Message response = response skills. ... session.close ();

MDB (or listener who reads the shared process queue) will return the response back to the feedback line. If the client is dead for any reason, then his session has closed and the queue is not present.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -