cancel
Showing results for 
Search instead for 
Did you mean: 

EJB local reference and JNDI

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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