Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-20 Thread Adel Boutros
Hello, I was wondering if there is a way to configure a Virtual Destination programmatically using the Jolokia REST Api? I explored the JMX module using JConsole but found no possible solution. I am following the example here: http://activemq.apache.org/virtual-destinations.html Regards, Adel

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Quinn Stevenson
Yes - the Camel route would be static, but you could use the recipient list EIP to dynamically determine where the messages are sent. http://camel.apache.org/recipient-list.html > On Mar 17, 2016, at 5:15 PM, Adel Boutros wrote: > > Hello Quinn, >

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Quinn Stevenson
Sorry - I was a little vague. I’d use a Camel route that called a bean to determine the recipient list. That bean would load it’s configuration from a file, DB or whatever you requirements are. The bean would also be able to update it’s configuration when the file changed. You could use anot

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Quinn Stevenson
You may be able to accomplish what you’re after using a Camel route embedded in the ActiveMQ broker. http://activemq.apache.org/broker-camel-component.html > On Mar 16, 2016, at 4:06 PM, Adel Boutros wrote: > > Hello Christopher, > > In

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Adel Boutros
Hello Quinn, Camel route is still a static way of doing it as I have to write it in Xml file. It doesn't suite my test case which requires "dynamic" route creation while the broker is running. Do you confirm this? Unless I have missed something. Just to compare with Artemis, for example, via Jolo

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Adel Boutros
Hello guys, There seem to be many possible ways of doing it. However, it seems a bit complex when you compare it to the way it is done in Qpid Java Broker or ActiveMQ Artemis for example: - Qpid Java broker: http://localhost:8080/api/latest/binding/topic/queue (+json request file for filte

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-19 Thread Tim Bain
In non-embedded Camel, it's possible to define routes at runtime via the Java API; see for example http://nigap.blogspot.com/2012/02/camel-create-routes-dynamically.html?m=1 I'm not sure if it would work for an embedded Camel context, but it might. Tim On Mar 17, 2016 5:45 PM, "Quinn Stevenson"

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-18 Thread Christopher Shannon
Currently this doesn't exist because Virtual destinations can only be set on start up or modified by a runtime plugin. (either the xml runtime plugin or the new java based one added in 5.13.0) There would need to be a new feature implemented to enable modification through JMX. On Wed, Mar 16, 201

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-18 Thread Christopher Shannon
You can create a Jira for a feature request and if someone has time they can look at it. Contributions are also always welcome so if you have time you could take a look at creating a pull request to add the feature. If you were going to take a look at implementing it I would probably start with u

Re: Configuring Virtual Destinations via Jolokia REST Api in ActiveMQ 5.13.2

2016-03-18 Thread Adel Boutros
Hello Christopher, In the way we will be using the broker, we would provide an API for clients to create these "redirections" between queues and topics on the fly. So this feature would be really useful as I know no other way of linking a queue to a topic. Regards, Adel Boutros Murex SAS www.mure