Hi

if you don't use the stateful you can't but nothing prevents you to
touch it only with a method doing nothing (keepAlive() ?)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-01-30 mrLittle <[email protected]>:
> 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.

Reply via email to