title: How to lookup ejb on JBoss AS 7.x
body: <p>I try ejb lookup for jndi name. 
  That ejb is same jboss server then is success. But ejb is other jboss server then is failed.
  My source code:</p>
  
  <pre><code>Hashtable&lt;String, String&gt; env = new Hashtable&lt;String, String&gt;();
  env.put("java.naming.provider.url","jnp://192.168.100.10:8484");
  env.put("java.naming.factory.initial",
                  "org.jboss.as.naming.InitialContextFactory");
  env.put("java.naming.factory.url.pkgs",
                  "org.jboss.as.naming.interfaces.java");
  env.put("java.naming.security.principal", "Admin");
  env.put("java.naming.security.credentials",
              "password");
  Context context = new InitialContext(env);
  IMyLogic infoLogic = (IMyLogic) context.lookUp("java:global/MyApplication/MyModule/MyLogic!org.test.interfaces.IMyLogic");
  </code></pre>
  
  <p>IMyLogic ejb 192.168.100.10 jboss as 7.1 deployed.
  I try lookup 192.168.100.15 jboss as 7.1.
  Thanks.</p>