geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zakharov, Vasily M" <>
Subject RE: How to specify JNDI names?
Date Thu, 11 Oct 2007 22:28:37 GMT

Sure, it isn't. :) The application queries the beans by ejb-name,
probably with some prefix that can be specified separately
I've tried to use -Dopenejb.jndiname.failoncollision=true and
-Dopenejb.jndiname.format="{ejbName}" at Geronimo startup, but that
changed nothing - probably those options don't work on G2.0.1 I use.

Thank you!


-----Original Message-----
From: Kevan Miller [] 
Sent: Wednesday, October 10, 2007 8:36 PM
Subject: Re: How to specify JNDI names?

On Oct 9, 2007, at 1:10 PM, Zakharov, Vasily M wrote:

> Kevan,
> Thanks for your help! Your solution worked.
> However, in my case the proper JNDI name for the bean turned out to be
> as follows:
> "orders.jar/OrderAuditSes/ 
> org.spec.jappserver.orders.orderauditses.ejb.O
> rderAuditSes"
> and I had to patch the source code of the 3rd party application  
> (good I
> had the sources)
> to make it working.
> It makes me hope the naming scheme is somehow simplified in G2.0.2. :)
> Thanks again!

You're welcome. Glad that it's working for you...

The default name for your Bean will be OrderAuditSesRemoteHome. I'm  
guessing that this isn't what your 3rd party app is looking for,  
either. There are several ways to fix, including configuring how  
OpenEJB will default JNDI names for beans. For example, the server  
can be configured to use the ejb-name as the default jndi name (which  
I'm guess is what your app is looking for...).

User feedback on this is more than welcome. What default is most  
useful for you or anyone else?

Closed Joint Stock Company Intel A/O
Registered legal address: 125252, Moscow, Russian Federation, 
Chapayevsky Per, 14.

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

View raw message