One of the things that the JMX example does is set this system property via
pom.xml [1]:

  -Djava.rmi.server.hostname=localhost

This system property is referenced in the Management documentation in the
section titled "Configuring remote JMX Access" [2] which states:

  It is important to note that the rmi registry will pick an ip address to
bind to, If you have a multi IP addresses/NICs present on the system then
you can choose the ip address to use by adding the following to
artemis.profile -Djava.rmi.server.hostname=localhost

I have to set this on my own machine to get this working. Perhaps you do as
well.


Justin

[1]
https://github.com/apache/activemq-artemis/blob/master/examples/features/standard/jmx/pom.xml#L64
[2]
http://activemq.apache.org/components/artemis/documentation/latest/management.html#configuring-remote-jmx-access

On Wed, Feb 26, 2020 at 8:23 AM Jonathan Gallimore <
[email protected]> wrote:

> Hi folks
>
> Apologies for a rookie question... I have Artemis setup on my local
> machine, and have enabled the JMX connector in management.xml:
>
> <connector connector-port="1099"/>
>
> I don't seem to be able to connect
> to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi. I've tried looking
> at the jmx example and adding a guest role - that doesn't seem to work
> either. The port is open, but I just can't seem to get JConsole connected.
>
> I'd be grateful for a pointer.
>
> Many thanks
>
> Jon
>

Reply via email to