[jboss-user] [EJB/JBoss] - Stateful session bean not passivated

msdanner do-not-reply at jboss.com
Fri Jul 28 06:11:36 EDT 2006

In JBoss 4.0.3 SP 1 a stateful session bean is not passivated after the calling client has terminated while a bean method is being executed. Instead, server log shows  the warning message 
2006-07-28 10:58:21,161 WARN  [org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to ctx lock, id=eq69yz36-b
where eq69yz36-b is the session ID of the terminated client.

The stateful session bean's task is to execute an SQL query and return its results in 1 or more than 1 calls because there might be some 100000 resulting rows. The state of the bean is a JBoss WrappedConnection and a ResultSet that should be closed when the caller has terminated.

All of it works fine unless the caller terminates while the session bean executes the query (which may take some minutes).

What can be the cause why the bean will not get passivated?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961520#3961520

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961520

More information about the jboss-user mailing list