How can I configure the jmx export in spring integration for parallel deploy

603 views Asked by At

In order to use the "parallel deployment" in tomcat 7 (deploy a new versión while maintaining the old one) we need to configure the JMX beans as "replace existing"

This was easy with our beans, just adding the

<property name="registrationBehaviorName" value="REGISTRATION_REPLACE_EXISTING"/>

but, for the spring integration channels, automatically created with

<jmx:mbean-export default-domain="com.mycompany.app" server="mbean-server" />

Here "registration" does not works, that is the only reference I could found

I cant found where/how to set the same behaviour, so the app fails on deploy because the channels etc already have a JMX bean and the new one can not work

Maybe sounds easy but I have been searching/googling a lot and didn't found the answer

Thanks a lot

0

There are 0 answers