For WMQ the temporary queues gets deleted when the connection to the
queuemanager ends since no explicit call to TemporaryQueue.delete() is
made, from the WMQ infocenter:

*Although a session is used to create a temporary queue, the scope of a
temporary queue is the connection that was used to create the session. Any
of the connection’s sessions can create message producers and message
consumers for the temporary queue. The temporary queue remains until the
connection ends or the application explicitly deletes the temporary queue
by using the TemporaryQueue.delete() method, whichever is the sooner.*
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzaw.doc/jm25070_.htm
*
*

By default I believe it is
the org.apache.camel.component.jms.reply.TemporaryQueueReplyManager that
gets created for handling the replies.
And looking into it you can (contrary to what the camel-jms docs says) set
the replyToCacheLevelName=CACHE_NONE instead, not sure it will help you
though.
>From the code:
 // we use CACHE_CONSUMER by default to cling to the consumer as long as we
can, since we can only consume
        // msgs from the JMS Connection that created the temp destination
in the first place
        if (endpoint.getReplyToCacheLevelName() != null) {
            answer.setCacheLevelName(endpoint.getReplyToCacheLevelName());
        } else {

answer.setCacheLevel(DefaultMessageListenerContainer.CACHE_CONSUMER);
        }




2013/4/3 PhilBurress <nmclough...@amig.com>

> For MQ we had to create a temporary dynamic model queue, which is specified
> in the queue connection factory. Example from one of our integration tests:
>
> ... and in the route...
>
> So it uses the same model queue each time. It appears that Camel will
> attempt to reuse the temporary queues it creates and it only creates
> additional temporary queues as needed (under load). The queues do
> eventually
> get deleted when the application shuts down, but I think we're looking for
> something which will actively poll for unused temporary queues and remove
> them as appropriate.
>
> We are using Camel 2.10.1 with MQ version 7.0.x
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Deleting-MQ-Temporary-Queue-tp5730231p5730290.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Brgds, Magnus Palmér
+46736845680

Reply via email to