JBoss Version -4.0.1sp1
Code where you are performing the lookup. -
private final static String JNDI_FACTORY =
    "org.jnp.interfaces.NamingContextFactory";
  private final static String URL_PKG_PREFIXES =
        "org.jboss.naming:org.jnp.interfaces";
provider_url=jnp://10.34.31.222:1099
...
 Hashtable env = new Hashtable();
    System.out.println(url);
    env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
    env.put(Context.PROVIDER_URL, url);
    env.put(Context.URL_PKG_PREFIXES, URL_PKG_PREFIXES );
    //env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
    //env.put(Context.PROVIDER_URL, url);
    return new InitialContext(env);

This works fine when the ejb and webapp reside on same directory  even if i 
provide the ip instead of "localhost".However when the ejb and local host are 
on different machines it says "ejb not bound".
both are jboss installs,one is a proxy and the other is used to run ejb's.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871062#3871062

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871062


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to