[jboss-user] [Management, JMX/JBoss] - Unregistering a MBean on un-/re-deploy

geirgp do-not-reply at jboss.com
Fri Aug 18 03:08:57 EDT 2006


How can I force an MBean to be unregistered on undeploy? 

I use Spring to manage my beans and it exports one of my beans as a MBean when the application is loaded. When I redeploy my application the MBean server throws an InstanceAlreadyExistsException because my MBean from the previous deployment is still alive while Spring is trying to inject a new one..

Anyone knows a work-a-round?

cheers,


Geir



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

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



More information about the jboss-user mailing list