Are you saying that your consumer is connecting to a different live server? this shouldnt happen, a consumer will either reconnect to the original live server or connect to its backup.
If this is the case can you provide a simple test so we can easily recreate the issue?
Yes, exactly this is happening. When a failover happened and the consumer is disconnected than the consumer is not reconnected to the backup of the original server.
I attached a test case.
I will need a bit more than that, server configurations, topology, how you are starting the servers and instructions as to how to run the test etc etc.
Ok, I attach server configurations.
The server is JBoss 5 with HornetQ embedded. It's a symmetrical cluster with colocated backup. I have 2 nodes.
You need to create a topic named TestTopic1 and there are some parameters at the beginning of the testcase which you need to configure, especially: JNP_URL, CONNECTION_FACT_NAME.
Then just run the test cases, it outputs when you need to kill one jboss instance.
It does exactly what I wrote above in the testcase.
ok, its a public holiday in the uk today but i ill take a look tomorrow. what HornetQ version are you using by the way?
Ok thanks. I'm using 2.2.24.
Any chance you could provide me with a script or something to set up the env, Ive spent a couple of hours on this and can'tr really get it running.