geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juergen Weber <webe...@gmail.com>
Subject Re: JNDI Name for EJB3
Date Thu, 18 Jun 2009 09:02:46 GMT

Rodger, thanks you, that works.

8-)
Juergen


Rodger wrote:
> 
> http://cwiki.apache.org/GMOxDEV/client-jndi-names.html will use a
> RemoteInitialContextFactory.
> Like:
>         Properties p = new Properties();
>         p.setProperty(Context.INITIAL_CONTEXT_FACTORY,
> "org.apache.openejb.client.RemoteInitialContextFactory");
>         p.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
>         Context initialContext=null;
>         try {
>             initialContext=new InitialContext(p);
> 
>             Object object1 = initialContext.lookup("Secure3Remote");
>             Secure3Remote s3r=(Secure3Remote)object1;
> 
>         } catch (NamingException e) {
>             e.printStackTrace();
>         }
> -- 
> Best Regards,
> Rodger.
> 
> 

-- 
View this message in context: http://www.nabble.com/JNDI-Name-for-EJB3-tp24076429s134p24089029.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message