This content has been marked as final.
Show 1 reply
-
1. Re: @Dispose method not called for CDI beans used by remote EJB?
skay088 Sep 17, 2013 10:02 AM (in response to pedrokowalski)Hi,
A remote EJB is supposed to run into a separate JVM : it is not supposed to be mixed with request-scoped CDI beans.
I'm not shure about what you're trying to do, but I think you should consider the dedicated EJB annotation for the EJB lifecycle :
@PreDestroy
And handle the remote EJB lifecycle completely separated from your CDI bean.
BR