HornetQ behavior on network outage
mayankmit2002 Oct 7, 2011 8:38 AMHello,
We are using HornetQ (2.2.5) in JBoss As 6.1.0.
Our test consists of 2 server nodes running Jboss AS in clustered mode and HornetQ in active-backup mode.
We are perforing test of failover in case of network outage.
Server Side code
-------------------------
Simple clustered SLSB.
Method is exposed from it, which triggers a some messages.
In the finally block we are flushing those messages are fired on a JMS Topic.
Client side code
-----------------------
Client is a simple JMS client listing to those messages. Here we are using provider URL (port ::: 1100), consiting of IP's from both servers.
Now I tried to casses and facing some issues.
Case1:: Shared store
=================
Following are my configuratrions.
Shared Store: true. Both nodes are sharing a samba location on my 3rd machine.
Clustered: false
Node2 is my backup node.
Now if I pull out the cable from Node1, then my JMS clients hangs for 1 minute and then dropped the correction. but gets connected again.
This behavior seems not aligned with what is specified in HornetQ documentation
Case2:: Local store
===============
Following are my configuratrions.
Shared Store: false. Both nodes are using their
Clustered: false
Node2 is my backup node.
Now If I pull out the cable from Node1 the hornetQ on node2 starts throwing exception
-
TestMessageListener.java.zip 1.3 KB
-
Case2.zip 21.9 KB