users@glassfish.java.net

Re: EJB 3.0 self-reference

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Wed, 17 Feb 2010 15:50:31 +0100

> @Dominik, did you expect the injection itself to create recursive calls? I am not sure how it actually works in the background. I thought @EJB injection is still JNDI lookup managed by the container.
Yes, I thought, @EJB would create a instance of
the object, but maybe it just holds a weak reference to it (through
JNDI?) and resolves it, when called.
That would make sense, also when thinking about local/remote beans...
have not thought about that.

sorry for the confusion.

-- 
Dominik Dorn
http://dominikdorn.com
Tausche Deine Lernunterlagen auf http://www.studyguru.eu !