Wink, Stephen wrote:

Hi,
I am using JBoss 3.0.1, and am using the remote JMX to manage and
monitor applications running on JBoss. I am doing this via the
RMIConnector and RMIAdaptor. I can use the JMX successfully to invoke,
register and add notification listeners across JVMs.
My problem starts if my remote client goes down in an uncontrolled way (
eg. network problem, reboot, crash ) - my agent on the JBoss server does
not receive a removeNotificationListener message, and continues to send
notifications to the listener. This causes the
NotificationBroadcaster.sendNotification method to throw a
java.net.ConnectException, and leaves an orphaned NotificationListener
that can never be removed.

I need a way to handle the exception and unregister this notification
listener, but there doesn't seem to be a way with the 3.0.1 code; you
need either the instance of the listener ( which is on a different JVM
and accessed via a proxy, therefore not useable ) or the ObjectName (
and I don't know how to get this from a NotificationListener registered
with the MBeanServer.)

I believe that there are plans to upgrade the remote JMX, and when that
comes along I will use that, but in the meantime I need some sort of
remote management. I would like to know if there is a way around this
problem. If not I am happy to investigate a fix myself.

rgds,
Steve Wink.


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

You can try another aproach :
I think you can register a local listener via MBeans (same JVM as JBoss) and then put the events in a Topic to be consumed by your clients.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Reply via email to