On 10/11/07, Zakharov, Vasily M <[EMAIL PROTECTED]> wrote:
> Kevan,
>
> Sure, it isn't. :) The application queries the beans by ejb-name,
> probably with some prefix that can be specified separately
> (application-wide).
> 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.

Yes, in G2.0.1, the openejb.jndiname.format is hard-coded to
{ejbName}{interfaceType.annotationName}.  You can't change it.

Ted Kirby

> Thank you!
>
> Vasily
>
>
> -----Original Message-----
> From: Kevan Miller [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 10, 2007 8:36 PM
> To: user@geronimo.apache.org
> 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?
>
> --kevan
> --------------------------------------------------------------------
> 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.
>

Reply via email to