Do you really want to have a state full session bean. If not then try using @stateless instead of @stateful.
Regards /Kalyan 0733312584 PS: May have typos due to using mobile On 30 jan 2014, at 16:25, mrLittle <[email protected]> wrote: > Hi all, > given two Stateful EJBs (A and B). > B is injected into A by using @EJB annotation. > After $minutes the container removes my timed-out EJBs > > / > 16.09.11 > org.apache.openejb.core.stateful.StatefulContainer$StatefulCacheListener > timedOut > INFO: Removing the timed-out stateful session bean instance > 583c10bfdbd326ba:a2c5b15:143e3aeafea:-7ffb/ > > When I try to use EJB B in A's method I get the following exception > > *javax.ejb.NoSuchEJBException: Not Found* > > then, if I try again, I get: > > *javax.ejb.NoSuchEJBException: reference is invalid for B* > > Even using lookup same exceptions are returned. > > Is there any way to avoid this problem without annotate my EJBs with > @StatefulTimeout(value = -1)? > > > Thank you > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/EJB-injection-after-timeout-tp4667359.html > Sent from the OpenEJB User mailing list archive at Nabble.com.
