3 Replies Latest reply on Apr 15, 2003 2:52 AM by juhalindfors

    How to receive JMX Notifications Remotely?

    paulbandler

      I have successfully and easily used the pre-packaged and JNDI registered RMIAdaptor to invoke JMX operatorations on remote systems. However I am not having much luck receiveing Notifications remotely. I'm using the RMIAdaptor method addNotificationListener() but it appears to only work if the referenced listener object is within the same process space as the remote agent.

      I see in teh JMX book and in the source a JMX connector that abstracts over JMS and RMI but it appears relatively difficult to use - can someome advise whether I absolutely need to use the RMIConnector interface in order to remotely receive JMX notifications?

        • 1. Re: How to receive JMX Notifications Remotely?

          Haven't used the remove notifications in RMIAdaptor, there will be a replacement with 4.0. In the meanwhile if you cannot get the adaptor to work you might consider just registering an MBean instance locally and register that to listen to your notifications and handle the callbacks to the remote node yourself.

          • 2. Re: How to receive JMX Notifications Remotely?
            paulbandler

            Thanks. I've concluded that what the RMIAdaptor does is very dummly register the notification listener assuming that the listener will be on the target host rather than wherever the RMIAdaptor client is.

            Thanks for the suggestion - this is sort of what the connector code does but it's not clear how to configure and use it - looks like experimental code. I've worked around the issue for now, but would be interested in intercepting where 4.0 is headed - how can I track that?

            • 3. Re: How to receive JMX Notifications Remotely?

              JBoss 4.0 connectors will be based on the new jboss-remoting package. The JBossMX 1.1.2 release includes an early version of the new connectors.