That's more a question from your application side.
From what you said on your statements... each node has different applications, but I'm not sure what kind of communication is done between them.
We can help you answering any specific technical questions about HornetQ, but on this case we don't have much information as how you should design this. (I don't at least)
The clustering chapter in the user manual should answer some of your questions, e.g. about routing messages to nodes with/without consumers.