activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Shannon <christopher.l.shan...@gmail.com>
Subject Re: A question on RedeliveryPlugin Configuration
Date Wed, 24 May 2017 20:57:25 GMT
You should be able to do in Java code if you have an embedded broker.  You
can get access to the Broker chain from the BrokerService object, get the
RedeliveryPlugin and then update the redeliveryPolicyMap.

BrokerService brokerService = new BrokerService();
//do configuration here
RedeliveryPlugin plugin =
brokerService.getBroker().getAdaptor(RedeliveryPlugin.class);
//update the map on the plugin

I don't think you can do it with just XML right now.  The only dynamic
stuff support with XML is here:
http://activemq.apache.org/runtime-configuration.html

On Sun, May 21, 2017 at 12:29 AM, snakorse <512979011@qq.com> wrote:

> Hi guys,
>
> I'm looking for a way to dynamically add redeliveryPolicy to the
> redeliveryPolicyEntries node of the RedeliveryPlugin. Is there any way to
> achieve this avoiding directly edit the activemq.xml and restart borker?
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/A-question-on-RedeliveryPlugin-Configuration-tp4726413.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

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