Brilliant, setting the cache size on the recipient list to -1 seems to do the job.
> On 13 Nov 2019, at 15:16, Claus Ibsen <
[hidden email]> wrote:
>
> Hi
>
> You can set the cache size of the recipient list to 0 or so to turn it
> off, then camel ought to stop the jms endpoint et all after its done
> using it.
>
> On Wed, Nov 13, 2019 at 3:35 PM Tim Mullender
> <
[hidden email]> wrote:
>>
>> Thanks Claus, unfortunately I don’t have an option to change the broker so I’m not able to use ActiveMQ
>>
>> From browsing the MBeans in JConsole and a quick look at the source code I don’t see that the JmsProducer or QueueReplyManager are available through JMX. I can access the routes, endpoints and processors etc but the only consumer listed is the ServletConsumer
>>
>> The only Java reference I can see to the producer is in the ProducerCache that is part of RecipientList and as it’s private the only way I can see to access it is through reflection (I told myself I wouldn’t do this, but... ;-))
>>
>> If you have any other ideas, I’m happy to give them a go
>>
>> Tim
>>
>>> On 12 Nov 2019, at 19:08, Claus Ibsen <
[hidden email]> wrote:
>>>
>>> Hi
>>>
>>> Try to look in JMX to see what consumer / services there are. Also if
>>> you use ActiveMQ it also has its mbeans where you can control
>>> lifecycle of stuff
>>>
>>> On Tue, Nov 12, 2019 at 4:08 PM Tim Mullender
>>> <
[hidden email]> wrote:
>>>>
>>>> First off, thanks for a great tool!
>>>>
>>>> We are using Apache Camel 2.24.2 on JDK1.8
>>>>
>>>> The simplest form of our route is:
>>>>
>>>> from("servlet:?matchOnUriPrefix=true&servletName=Name”).recipientList(simple("amqp:queue:${header.queue}.req?replyTo=${header.queue}.resp&replyToType=Exclusive"))
>>>>
>>>> The aim is to send an HTTP request to one of several AMQP queues, determined by an HTTP header, and get a response back (the broker doesn’t support temporary queues, hence the replyTo param)
>>>>
>>>> This all works reasonably well until a queue is deleted at which point the JMSConsumer still attempts to reconnect to the queue every 5 seconds.
>>>>
>>>> The stop method in JmsEndpoint does not stop anything because there is a running message listener, I don’t want to stop the whole route/context as other queues are still in use.
>>>>
>>>> Is there a way to be able to stop the consumer associated with a specific queue?
>>>>
>>>> Thanks
>>>>
>>>> Tim
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> * <
http://wandisco.com/>*
>>>>
>>>> **The *LiveData* Company
>>>> *Find out more
>>>> *wandisco.com <
http://wandisco.com/>*
>>>>
>>>>
>>>>
>>>>
>>>> <
https://www.wandisco.com/liveanalytics>
>>>>
>>>>
>>>> THIS MESSAGE AND ANY ATTACHMENTS
>>>> ARE CONFIDENTIAL, PROPRIETARY AND MAY BE PRIVILEGED
>>>> *
>>>>
>>>>
>>>> If this message was
>>>> misdirected, WANdisco, Inc. and its subsidiaries, ("WANdisco") does not
>>>> waive any confidentiality or privilege. If you are not the intended
>>>> recipient, please notify us immediately and destroy the message without
>>>> disclosing its contents to anyone. Any distribution, use or copying of this
>>>> email or the information it contains by other than an intended recipient is
>>>> unauthorized. The views and opinions expressed in this email message are
>>>> the author's own and may not reflect the views and opinions of WANdisco,
>>>> unless the author is authorized by WANdisco to express such views or
>>>> opinions on its behalf. All email sent to or from this address is subject
>>>> to electronic storage and review by WANdisco. Although WANdisco operates
>>>> anti-virus programs, it does not accept responsibility for any damage
>>>> whatsoever caused by viruses being passed.
>>>
>>>
>>>
>>> --
>>> Claus Ibsen
>>> -----------------
>>>
http://davsclaus.com @davsclaus
>>> Camel in Action 2:
https://www.manning.com/ibsen2>>
>>
>> --
>>
>>
>> * <
http://wandisco.com/>*
>>
>> **The *LiveData* Company
>> *Find out more
>> *wandisco.com <
http://wandisco.com/>*
>>
>>
>>
>>
>> <
https://www.wandisco.com/liveanalytics>
>>
>>
>> THIS MESSAGE AND ANY ATTACHMENTS
>> ARE CONFIDENTIAL, PROPRIETARY AND MAY BE PRIVILEGED
>> *
>>
>>
>> If this message was
>> misdirected, WANdisco, Inc. and its subsidiaries, ("WANdisco") does not
>> waive any confidentiality or privilege. If you are not the intended
>> recipient, please notify us immediately and destroy the message without
>> disclosing its contents to anyone. Any distribution, use or copying of this
>> email or the information it contains by other than an intended recipient is
>> unauthorized. The views and opinions expressed in this email message are
>> the author's own and may not reflect the views and opinions of WANdisco,
>> unless the author is authorized by WANdisco to express such views or
>> opinions on its behalf. All email sent to or from this address is subject
>> to electronic storage and review by WANdisco. Although WANdisco operates
>> anti-virus programs, it does not accept responsibility for any damage
>> whatsoever caused by viruses being passed.
>
>
>
> --
> Claus Ibsen
> -----------------
>
http://davsclaus.com @davsclaus
> Camel in Action 2:
https://www.manning.com/ibsen2misdirected, WANdisco, Inc. and its subsidiaries, ("WANdisco") does not
waive any confidentiality or privilege. If you are not the intended
disclosing its contents to anyone. Any distribution, use or copying of this
unauthorized. The views and opinions expressed in this email message are
opinions on its behalf. All email sent to or from this address is subject
to electronic storage and review by WANdisco. Although WANdisco operates