title: Java (and JBoss) JNDI and RMI ports
body: <p>I have JBoss running on a couple of Linux machines. If I want to send a JMS message from box 1 to a queue on box2, I may do something like this:</p>
  
  <pre><code>Hashtable&lt;String,String&gt; jndiProperties = new Hashtable&lt;String,String&gt;();
  
  jndiProperties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
  jndiProperties.put(javax.naming.Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
  jndiProperties.put(javax.naming.Context.PROVIDER_URL, "jnp://&lt;ip of box2&gt;:1099"); // 
  
  InitialContext context = new InitialContext(m_jndiProperties);
  Queue queue = (Queue)context.lookup("queue/myqueue");
  </code></pre>
  
  <p>and then put a message on the queue. Clearly port 1099 needs to be open on box2, but I am curious what other ports are involved in that communication?</p>
  
  <p>Thank You.</p>