Skip to Content
author's profile photo Former Member
Former Member

EJB local reference and JNDI

We have entity beans with only Local and LocalHome Interfaces and session beans accessing entity beans over local references. We defined JNDI names for entity beans in ejb-j2ee-engine.xml and tried to access them from within session beans over JNDI, but it does not work! (the engine seems not to register local ejb's under JNDI!?)

When we defined <ejb-local-ref> entries in ejb-jar.xml for each session bean that accesses an entity bean, it works! But registering every local entity access for every session bean is a lot of work to do :-(.

Is there a way to register a local reference to en entity bean with JNDI that it can be access by every session bean in the same application via the same JNDI name? Anyone has an idea?

Thanks, Christoph

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2003 at 03:35 PM

    My question has been answered in the Technologies Forum and the quick answer is NO! For a more detailed answer, have a look there 😉

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.