Hi Folks,

I have Mbean in sar, after the state of MBean has been changed, it will notify 
listener. But my listener is a servlet in war. 
I added the listener in a code in war:

ObjectName objectName = new 
ObjectName("com.outputprocess.jmxservice:service=Hello");
                        
MBeanServer server = MBeanServerLocator.locateJBoss();
        
HelloMBean 
mbean=(HelloMBean)MBeanServerInvocationHandler.newProxyInstance(server,objectName,HelloMBean.class,false);
        
MBeanListener  myMBeanListener = new MBeanListener();
server.addNotificationListener(objectName, myMBeanListener, null, null );

When I changed a state of Hello Mbean, it complains ClassLoadNotFoound 
exception. 

I know the listener is in war, not in sar. 

How can MBean notify to a listener in war?

Thank you very much for your help.

Chwang
 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923369#3923369

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923369


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to