camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Dudgeon <tdudgeon...@gmail.com>
Subject deleting jms queue
Date Mon, 08 Jun 2015 15:31:28 GMT
I'm using a temp JMS queue to return some results.
Once I've finished processing I want to delete the queue. What's the 
best approach?
I'm assuming its best to manually generate the temp queue at the start 
and then manually delete it when finished.
I notice I could use JmsTemporaryQueueEndpoint [1] which I know how to 
get hold of, and that can give me the javax.jms.TemporaryQueue, which I 
can then delete(), but how to get a handle on the javax.jms.Session session?
Or is there a better way?

Thanks
Tim

[1] 
http://camel.apache.org/maven/current/camel-jms/apidocs/org/apache/camel/component/jms/JmsTemporaryQueueEndpoint.html
[2] http://docs.oracle.com/javaee/7/api/javax/jms/TemporaryQueue.html

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message