Thanks. 

I found the solution - 
Set the following property to IntialContext object 
                 Properties props = new Properties();   
                 props.put(Context.INITIAL_CONTEXT_FACTORY, 
                                
"org.apache.openejb.client.RemoteInitialContextFactory");
                 InitialContext ctx = new InitialContext(props);


Thanks again,



--
View this message in context: 
http://openejb.979440.n4.nabble.com/How-to-access-EJB-through-JNDI-lookup-from-non-EJB-class-in-the-same-server-tp4664958p4664961.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to