Resolving HornetQ issues with two JBoss 6 instances in one network

If you have the following warning in your JBoss 6 logs:

[quote]
WARN [org.hornetq.core.cluster.impl.DiscoveryGroupImpl] There are more than one servers on the network broadcasting the same node id. You will see this message exactly once (per node) if a node is restarted, in which case it can be safely ignored. But if it is logged continuously it means you really do have more than one node on the same network active concurrently with the same node id. This could occur if you have a backup node active at the same time as its live node.
[/quote]

You just have to delete the contents of the /server//data/hornetq/ directory, as you most probably will be using a copy of the exactly the same instance of the JBoss installation that’s causing those warnings. At startup, HornetQ geneartes the node ID and stores it in a file. If you copy that file and the JBoss installation surrounding it, it won’t regenerate the node ID and you will have two servers with the same node ID on the network, hence the pesky warning in your log files.

Advertisements
This entry was posted in Distributed Computing, Enterprise Java, Uncategorized and tagged . Bookmark the permalink.

5 Responses to Resolving HornetQ issues with two JBoss 6 instances in one network

  1. maxid says:

    Thanks great!

  2. james says:

    you save me ❤

  3. Anant says:

    Thank you… you are champ

  4. Daniel says:

    Thank you!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s