You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tim Dudgeon <td...@gmail.com> on 2015/06/08 17:31:28 UTC
deleting jms queue
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
Re: deleting jms queue
Posted by yogu13 <yo...@gmail.com>.
Hello,
Depends on the support provided by the JMS Provider for deleting... for e.g.
in AMQ you can use JMX to delete the queue
Regards,
-Yogesh
--
View this message in context: http://camel.465427.n5.nabble.com/deleting-jms-queue-tp5767981p5768013.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: deleting jms queue
Posted by Tim Dudgeon <td...@gmail.com>.
So back to the question about how to delete them :-)
On 09/06/2015 07:54, Claus Ibsen wrote:
> Yes then you should use regular queues.
>
>
> On Tue, Jun 9, 2015 at 8:47 AM, Tim Dudgeon <td...@gmail.com> wrote:
>> Well, maybe I'm wrong to call it a temp queue. This is not an InOut pattern.
>> Its InOnly followed (potentially much later) by a response to a "private"
>> queue (specified by JmsReplyTo header) that is InOnly and handled by a
>> different route/consumer.
>> Once processing is complete I need the queue to be deleted.
>>
>> Tim
>>
>>
>> On 09/06/2015 07:07, Claus Ibsen wrote:
>>> Hi
>>>
>>> Afair temp queues are affilianted with the jms session and automatic
>>> deleted by the broker when the session is closed - eg AMQ should do
>>> this.
>>>
>>>
>>>
>>> On Mon, Jun 8, 2015 at 5:31 PM, Tim Dudgeon <td...@gmail.com> wrote:
>>>> 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
>>>
>>>
>
>
Re: deleting jms queue
Posted by Claus Ibsen <cl...@gmail.com>.
Yes then you should use regular queues.
On Tue, Jun 9, 2015 at 8:47 AM, Tim Dudgeon <td...@gmail.com> wrote:
> Well, maybe I'm wrong to call it a temp queue. This is not an InOut pattern.
> Its InOnly followed (potentially much later) by a response to a "private"
> queue (specified by JmsReplyTo header) that is InOnly and handled by a
> different route/consumer.
> Once processing is complete I need the queue to be deleted.
>
> Tim
>
>
> On 09/06/2015 07:07, Claus Ibsen wrote:
>>
>> Hi
>>
>> Afair temp queues are affilianted with the jms session and automatic
>> deleted by the broker when the session is closed - eg AMQ should do
>> this.
>>
>>
>>
>> On Mon, Jun 8, 2015 at 5:31 PM, Tim Dudgeon <td...@gmail.com> wrote:
>>>
>>> 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
>>
>>
>>
>
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/
Re: deleting jms queue
Posted by Tim Dudgeon <td...@gmail.com>.
Well, maybe I'm wrong to call it a temp queue. This is not an InOut
pattern. Its InOnly followed (potentially much later) by a response to a
"private" queue (specified by JmsReplyTo header) that is InOnly and
handled by a different route/consumer.
Once processing is complete I need the queue to be deleted.
Tim
On 09/06/2015 07:07, Claus Ibsen wrote:
> Hi
>
> Afair temp queues are affilianted with the jms session and automatic
> deleted by the broker when the session is closed - eg AMQ should do
> this.
>
>
>
> On Mon, Jun 8, 2015 at 5:31 PM, Tim Dudgeon <td...@gmail.com> wrote:
>> 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
>
>
Re: deleting jms queue
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Afair temp queues are affilianted with the jms session and automatic
deleted by the broker when the session is closed - eg AMQ should do
this.
On Mon, Jun 8, 2015 at 5:31 PM, Tim Dudgeon <td...@gmail.com> wrote:
> 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
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/