This content has been marked as final.
Show 2 replies
-
1. Re: How to add ConnectionListener in JBoss ?
rhodan76 Apr 16, 2008 9:42 AM (in response to rhodan76)Ok, i managed it now to add the listener via a self created jboss-service, which adds the listener through the JMX RMIAdaptor (see Jboss 4.0 guide, page 69) to the configured Remoting-MBean(s) on server startup.
But i'm asking myself, if this is the normal way, to add a connection listener in jboss ? -
2. Re: How to add ConnectionListener in JBoss ?
ron_sigal Apr 26, 2008 12:51 AM (in response to rhodan76)You're on the right track. A Connector is an MBean, and once you get a reference to it, you can invoke its methods. You don't need to use the RMIAdaptor, however, since your service is running in the same JVM as the connector. You can talk directly to the MBeanServer.