I have 2 JBoss servers running on the same machine. JMS client 1 needs to connect to JBoss 1 and JMS client 2 needs to connect to JBoss2.
When i have just 1 JBoss server running, the jndi.properties file for my JMS client is as follows:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=machine_name
Now that i have 2 JBoss servers, i think i need to specify the port number too. What is the port number by default? can someone help?
java.naming.provider.url=host:port
e.g.
java.naming.provider.url=localhost:1099
The port is the naming service from jboss-service.xml
1099 by default.
Regards,
Adrian