kot kote wrote:
Would anybody answer the question:
Is there any way to start one instance of hornetq on multiple network interfaces?
If the answer is yes, please explain how to do it?
Thank you in advance.
it is explained in the user manual http://hornetq.sourceforge.net/docs/hornetq-2.1.1.Final/user-manual/en/html/configuring-transports.html#d0e3015, look at the host property description...
Thank you for the fast answer.
Actually, I have to setup JNDI server in the hornetq-beans.xml file.
<bean name="JNDIServer" class="org.jnp.server.Main">
Now it works only on 192.168.1.218 interface, but I need it also working on the other 192.168.15.23 interface.
Should I add another property to hornet-beans.xml or I have to add another transport to hornet-configuration.xml?
The JNDI server is a completely different service borrowed from JBoss AS, it's not part of the HornetQ server. HornetQ knows nothing about the JNDI server.
If you're asking whether you can have a JNDI server listening on multiple interfaces, I think the answer is yes. But you should check the JBoss AS documentation for confirmation. Are you sure this is not already in the HornetQ docs?
Try bindAddress=0.0.0.0 for all interfaces, or comma separated list for specific interfaces
Ok, this binds JBoss to ALL interfaces available ,while JBoss will communicate back only the IP/Hostname of the first interface found where applicable (which is sort of unclever, since the first interface is not neccessarily reachable for RMI and stuff).
Question is: how do I bind JBoss AS to two ore more specific interfaces ?
The manuals tell you you can bind to one specific address by using the -b flag or the jboss.bind.address system property. I found a source which showed the obvious approach, but it didn't work. Is there a solution for binding JBoss to two ore more specified interfaces?