Title: RE: [JBoss-user] Remote RMI (jndi)

Or...call constructor InitialContext(Properties) like so:

Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");

jndiContext = new InitialContext(props);
ref = jndiContext.lookup("RouteListSessionEJB");

-----Original Message-----
From: Jeremy Rempel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 12:10 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Remote RMI (jndi)


I am trying to access a ejb remotley though JNDI. It compiles perfect
and it works when it is on the same machine and I update my
jndi.properties. When I try and move it to and access it remotley it
returns null.

jndiContext = new InitialContext();
ref = jndiContext.lookup("RouteListSessionEJB"); // returns null

When I change jndi.properties to a host w/o JBOSS running it gives a
connection error on InitialContext(), so that is not the case. Port 1099
is open.

Any help is greatly appreciated.

Thanks, Jeremy



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to