You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by Eric Covener <co...@gmail.com> on 2010/08/25 20:24:11 UTC
lifecycle interceptors for EJBs
In our OWBEjbInterceptor, we have a disconnect between how
@AroundInvoke and @PostConstruct/@PreDestroy are handled.
In the former, we only call the ejb containers ic.proceed() when we
fall off the end of our own ic.proceed() -- this seems good because it
means the last 299 interceptor called proceed, allowing the biz method
to run.
But for the lifecycle (PostConstruct, PreDestroy) callbacks, we call
the ejb containers ic.proceed() no matter what the 299 interceptors
did (e.g. did not call through 299 ic.proceed to the bottom) -- in the
OpenWebBeansEJBInterceptor itself. Shouldn't this behave like
@AroundInvoke and only call the EJB one when we fall off the bottom of
our own invocation context?
--
Eric Covener
covener@gmail.com
Re: lifecycle interceptors for EJBs
Posted by Eric Covener <co...@gmail.com>.
On Wed, Aug 25, 2010 at 2:24 PM, Eric Covener <co...@gmail.com> wrote:
> In our OWBEjbInterceptor, we have a disconnect between how
> @AroundInvoke and @PostConstruct/@PreDestroy are handled.
answered offline -- aroundinvoke is right and lifecycles should
ultimately behave the same.
--
Eric Covener
covener@gmail.com