geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski" <>
Subject Re: Gbean and EJBs
Date Tue, 08 Jan 2008 07:52:10 GMT
On Jan 8, 2008 8:24 AM, ivanrc <> wrote:

> How can Gbean obtain the global jndi?

During "the simplest and easiest approaches" day everything should be
simplest and easiest (as well as intuitive) so your best bet would be
to look at gbean as any other java remote client and do the following:

        Properties properties = new Properties();

        Context ctx = new InitialContext(properties);
        MyEjbBeanIntf myEjbBean = (MyEjbBeanIntf) ctx.lookup("MyEjbBeanLocal");

As the gbean's actually part of the server environment, I'd expect you
can leave off the Context.INITIAL_CONTEXT_FACTORY setting and look up
ejbs without it.


Jacek Laskowski

View raw message