geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor" <>
Subject Re: jndi-name and sub-context
Date Mon, 02 Jul 2007 15:25:47 GMT

Comments inline.

On 7/2/07, Xiao-fei Song <> wrote:
> Hi all,
> I am just working on geronimo v2 for a very simple ejb client application
> but I got stuck on the jndi lookup part. I got 2 questions basically because
> my code runs well on geronimo 1.x:
> 1. jndi-name specified in openejb-jar.xml does not work. Is this being
> ignored or a geronimo regression?

Please open a bug and hopefully somebody will address it.

> 2. when I try using deployment id as "MyEjbModule.jar/MySessionBean", the
> look up returned subcontext instead of the home object, and I have a
> ClassCastException while narrowing the object ref returned. The object's
> class type is org.apache.openejb.client.JNDIContext instead of the home
> interface.

I believe, the default JNDI name in v2 is of the following format:


where {deploymentId} is:


So you want to lookup something like:

for an example.

Hope this helps,

View raw message