-
1. Re: Problem in deploying regular MBean using HASingletonController
dasmurali Nov 4, 2010 2:05 AM (in response to dasmurali)1 of 1 people found this helpfulHi,
Finally I fixed the problem.
The issue is with my current MBean implementation. MBean service is starting in start/startService method itself. This method will be invoked by JBoss deployer in life cycle process (first invoke create() then will start()).
If we want to use the same service without any code changes, then needs to deploy in deploy-hasingleton directory which will be deployed (i.e create() and start() invocations) only on master node.
Other option will be add dependency on 'BarrierController' (this will just call create() method. won't call start() method). But if any modules in application have dependency in this MBean service (in my case YES) those modules will fail. Because this MBean service is not started.
Third option is move the 'service starting' code out of start/startService methods and expose the 'service starting' as and MBean method which will be invoked by HASingletonController on Master node.
Thanks and Regards
Murali Reddy