Re: Artemis - Diverting messages using management api

2017-11-27 Thread alisu
The MBean object name for the queue is: /org.apache.activemq.artemis:broker="artemis-server",component=addresses,address="Step-Event"/. After recreating the object name with: /ObjectName objName = ObjectNameBuilder.create(ActiveMQDefaultConfiguration.getDefaultJmxDomain(), "artemis-serve").get

Re: Artemis - Diverting messages using management api

2017-11-27 Thread alisu
Thanks Justin. I don't know how I missed that example earlier. It is very clear now after going through it. having said that, Now if I run the code below, I get /InstanceNotFoundException/ during serverControl.createDivert method invocation. /public class App { private static final String

Artemis - Diverting messages using management api

2017-11-26 Thread alisu
I am trying to do a non-exclusive divert of messages dynamically on my remote Artemis server using core management api. I have spend considering amount of time looking at Artemis documentation [1] and test classes found at [2] but still I can not figure out how to do it. Neither the documentation

Re: Re-ordering of messages - Artemis

2017-11-23 Thread alisu
Thanks Justin, got my routes now running inside Artemis server. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Re-ordering of messages - Artemis

2017-11-21 Thread alisu
I have managed to sort out the dependency conflict problem. Actually both camel-spring and activemq-camel come with jaxb. So I just made sure they both use the same version of jaxb. e.g. by using activemq-camel-5.15.1 and camel-spring-2.20.1 where they both use jaxb-2.2.11. -- Sent from: http://

Re: Re-ordering of messages - Artemis

2017-11-20 Thread alisu
mpatible versions between camel and other libraries such as CFX or JAXB. Am I being faced with the same problem? I am not using either of this libraries. Alisu -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Re-ordering of messages - Artemis

2017-11-20 Thread alisu
Thanks Justin and gtully for your responses. As Justin said, it is possible t run camel routes inside the broker, now I have been experimenting with this. First, I have tried this with ActiveMQ 5.15.1 as described in [1], and everything works fine. But when I do the same thing with Artemis, by addi

Re-ordering of messages - Artemis

2017-11-16 Thread alisu
In my use case, I have to run two instances of the same application that read messages from 'queue-1' and write them back to another queue 'queue-2'.  I need my messages inside the two queues to be ordered by specific property (sequence number) which is initially added to every message by producer.