Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    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 comment
    10|10000 characters needed characters exceeded