I am facing a timing problem:
A HASingleton mbean service (deployed in farm directory) is using a HAJMS topic.
On failover at first the HASingleton mbean becomes new master and the startSingleton() is called. startSingleton() method tryies to connect to the HAJMS topic, which has not failed over yet. So the connection fails and the service does not work after failover.
Manuell restart of the service using web-console works, if started after the JMS failover has finished.
How can I solve this timing problem? Thanks for Your hints in advance.
Stefan
PS. I am using JBoss 3.2.6
My workaround for this in case of failover is to start a new thread, which contains a reconnection loop. It has to be a thread, otherwise the failover of JMS will hang.