activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <jbert...@redhat.com>
Subject Re: Artemis - Diverting messages using management api
Date Mon, 27 Nov 2017 03:20:58 GMT
> I have spend considering amount of time looking at Artemis
documentation...

The documentation you mentioned refers to an example "which shows how to
use a remote connection to JMX and MBean proxies to manage Apache ActiveMQ
Artemis."  Have you taken a look at this example?  It's shipped with the
broker and is found in <ARTEMIS_HOME>/examples/features/standard/jmx.  You
can also take a look at the code in GitHub here [1].

The code you pasted in your email is code you'd use to configure an
embedded broker, not code you'd use to invoke management operations on a
remote broker.


Justin

[1]
https://github.com/apache/activemq-artemis/blob/master/examples/features/standard/jmx/src/main/java/org/apache/activemq/artemis/jms/example/JMXExample.java

On Sun, Nov 26, 2017 at 7:00 AM, alisu <alisu7008@gmail.com> wrote:

> 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 nor the
> test classes gives me enough information to get going. This is what I have
> in mind so far which can be completely wrong.
>
> /public static void main(String[] args) {
>                 DivertConfiguration divertConf = new DivertConfiguration();
>
> divertConf.setName("non-ED").setRoutingName("myRoute").
> setAddress("mainAddress").setForwardingAddress("tempAddress");
>                 ConfigurationImpl config = new ConfigurationImpl();
>                 config.addDivertConfiguration(divertConf);
>                 config.setManagementAddress(new
> SimpleString("tcp://localhost:61616"));
>
> // next ?
>
>         }/
>
>
> I will appreciate if someone sheds more light particularly on how
> ActiveMQServerControlImpl and DiverControlImpl classes are used.
>
> [1] https://activemq.apache.org/artemis/docs/1.0.0/management.html
> [2]
> https://github.com/apache/activemq-artemis/tree/master/
> tests/integration-tests/src/test/java/org/apache/activemq/
> artemis/tests/integration/management
>
>
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>

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