[jboss-user] [EJB 3.0 Development] New message: "Re: Default remove timeout"

jaikiran pai do-not-reply at jboss.com
Sat Feb 20 13:02:31 EST 2010

User development,

A new message was posted in the thread "Default remove timeout":


Author  : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran

> petemuir wrote:
> The issue is that, as Weld uses the http session to back both the session and conversation context, if the backing for the EJB is a session object, then if the EJB is removed in less time than the http session, users get an exception when Weld responds to the http session timing out and tries to remove the EJB.
This somewhat comes back to our discussion about EJB3 providing a API to weld for managing session bean removal http://community.jboss.org/message/525610#525610
The proposed SessionManager has a exists(...) method :
            *public* *boolean* exists(T proxy) *throws* IllegalArgumentException
               // TODO Auto-generated method stub
               *return* *false*;
which you can use before calling the remove through the SessionManager. It would then be the responsibility of the SessionManager impl to check for the existence/absence of the instance associated with the session in the proxy.


To reply to this message visit the message page: http://community.jboss.org/message/527453#527453

More information about the jboss-user mailing list