I have to write an Eclipse RCP based Client for our JEE Application.
I'm using JBoss 4.0.5.GA with JDK 5 and I have a problem with JMX notifications.
I can successfully connect to the MBeanServer with:
MBeanServerConnection server = (MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor");
Caused by: java.lang.NoClassDefFoundError: my/package/MyNotificationListener
public void handleNotification(Notification notification, Object handback)and do not call another listener. :-/
Ok, I solved this problem by deploying my client application, like
a usual JEE-Client-Application.
It's not the best solution but it works...
If I don't connect direct to the JBoss JMX kernel but to the underlying
JVM, I haven't to deploy my client app and it works. But in this case, I have the
common RMI random port problem.