|
I'm confused, so are you saying that I should not use @PreDestroy on @@ConversationScoped Beans or I should not call another Conversation Bean in side the @PreDestroy? Right now the @PreDestroy behave differently on normal conversation.end() and session timeout, and I don't see anything mentioned inside the Spec.
Here is the concept demo:
@ConversationScoped public class BeanA { public void methodA(); }
@ConversationScoped public class BeanB { @Inject private BeanA a;
@PreDestory public void release() { // do something ... a.methodA(); }
}
This worked if it's normal conversation.end(), it failed when session time.
Thanks,
|