tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amol.p.dongare" <...@3ds.com>
Subject Re: How to access EJB through JNDI lookup from non EJB class in the same server
Date Tue, 03 Sep 2013 06:14:24 GMT
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.

Mime
View raw message