-
1. Re: "Domain already registered" after EAR is redeployed
mircea.markus Nov 5, 2012 6:58 AM (in response to true_mykola)You have two infinispan instances trying to bind to the same jmx domain. You can either set up a different domain name for your second instance, or let ifninispan generate one for your: see allowDuplicateDomains in the user manual.
-
2. Re: "Domain already registered" after EAR is redeployed
true_mykola Nov 5, 2012 12:46 PM (in response to mircea.markus)But why are there two instances when i start only one? can i kill the second or may be i can somehow use it onstead of creating new one? As i said when i start the application server everything works fine, the problem occurs when i redeploy EAR without restarting application server, so the second infinspan instance is definitely the one that was launched when application was started for the very first time after Weblogic had started.Hence i suppose that i should be able either to kill it or use it but i don't know how.
-
3. Re: "Domain already registered" after EAR is redeployed
true_mykola Nov 7, 2012 2:07 AM (in response to true_mykola)Well, it seems like i've solved it. The solution is simple and was taken from documentation (it's strange that no one told me to rtfm ):
"When the system shuts down, it should call
stop()
on the CacheManager. This will ensure all caches within its scope are properly stopped as well. "So i call stop() from contextDestroyed() of our implementation of ServletContextListener and everything works fine.