Re: JNDI lookup from setEntityContext fails with java.lang.IllegalStateException: Can not access other EJBs from within setEntityContext(...)

Juan Pablo Lorandi <[email protected]>
Newsgroups gmane.comp.java.sun.ejb.general
Organization CodeFoundry LTD
Message-ID <00d801c37224$62c0af90$0a00a8c0@rifle>
I've seen some of the code I have running on Orion 2.0.2 and while I can
initialize the InitialContext in that method, I'm not looking up beans
there. I have a separate method which loads/discards home references and
attempts to cache them as well.

Reviewing the spec, java:comp/env access IS allowed, but Enterprise
Beans access isn't allowed (except for the bean's own Home interfaces).
Thus, they comply to the spec, and "fixing" this for you would mean to
break the spec, IMHO.

Can't you just refactor the code?

My 2c,
JP

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.