[jboss-user] [Management, JMX/JBoss] - JMX ServiceURL and Spring

2006-08-21 Thread geirgp
Okay, spring and JMX again. I'm using Spring's serverConnector to serve my MBean's via JMX. This is done my adding the following lines to Spring's config | | This works very well and I can access all beans in JBoss' MBean server remotely. However the last

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

2006-08-21 Thread geirgp
Thanks! However I found another solution. It isn't really related to JBoss since I'm using Spring to manage these beans, but here goes: I added the following line to the "MBeanExporter" in applicationContext.xml which forces unregistration of any existing beans with the same name. (this settin

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

2006-08-18 Thread geirgp
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 deploym