-
1. Re: HornetQ one instance on multiple interfaces
jmesnil Jul 28, 2010 5:49 AM (in response to vavilen)kot kote wrote:
Hello!
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...
-
2. Re: HornetQ one instance on multiple interfaces
vavilen Jul 28, 2010 6:17 AM (in response to jmesnil)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">
<property name="namingInfo">
<inject bean="Naming"/>
</property>
<property name="port">1099</property>
<property name="bindAddress">192.168.1.218</property>
<property name="rmiPort">1098</property>
<property name="rmiBindAddress">192.168.1.218</property>
</bean>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?
-
3. Re: HornetQ one instance on multiple interfaces
timfox Jul 28, 2010 6:19 AM (in response to vavilen)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?
-
4. Re: HornetQ one instance on multiple interfaces
timfox Jul 28, 2010 6:27 AM (in response to timfox)Try bindAddress=0.0.0.0 for all interfaces, or comma separated list for specific interfaces
-
5. Re: HornetQ one instance on multiple interfaces
mwmahlberg Oct 20, 2010 5:38 AM (in response to timfox)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?