Hi,
In our application, several SA are deployed on ServiceMix 3.3.2 and
communicate with each other.
For administration purpose, a SA must known the state (started, stopped,
shutdown) of the others SA to
start or stop specific tasks. So, we think to implement this functionality
by using JMX Notification:
adding a NotificationListener on ServiceAssembly Mbean for receiving
AttributeChangeNotification and
processing tasks when SA's state has changed.
Our implementation works perfectly in unit test using embedded ServiceMix (
AttributeChangeNotification are received ). However, in case of SA deployed
on standalone ServiceMix, the JMX Notification doesn't work and no
AttributeChangeNotification are received.
Our tests are achieved with JConsole in stopping/starting the corresponding
SA.
The Servicemix container is started with the following configuration:
<sm:container id="jbi"
rootDir="./data/smx"
MBeanServer="#jmxServer"
installationDirPath="./hotdeploy"
monitorDeploymentDirectory="false"
monitorInterval="1"
transactionManager="#transactionManager"
createJmxConnector="true"
depends-on="jndi"
useMBeanServer="true"
createMBeanServer="true">
and the default jmx configuration.
Any ideas or suggestions would be appreciated.
Thanks in advance.
Cedric Merel
--
View this message in context:
http://servicemix.396122.n5.nabble.com/JMX-notification-between-SA-tp4708764p4708764.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.