[jboss-user] [EJB 3.0] - Re: removalTimeoutInSeconds & subsequent removal?

Huber Maier do-not-reply at jboss.com
Fri Oct 22 07:47:45 EDT 2010

mikka2010 [http://community.jboss.org/people/mikka2010] created the discussion

"Re: removalTimeoutInSeconds & subsequent removal?"

To view the discussion, visit: http://community.jboss.org/message/567865#567865


I have a similar problem.
I use a stateful session bean with a removalTimeoutSeconds = 60 (for testing), but after the timeout the method annotated with @Remove is not executed.
Only the method annotated with @PreDestroy is called.
In the heap dump I can still see the session bean object in memory.

I want to use the removalTimeout for such sessions which terminate abnormal.
If the client terminates normal, it calls the method annotated with @Remove and then the method annotated with @PreDestroy.
In this scenario the session bean object is not present in the memory anymore.

I use the application server jboss 4.2.3_GA.

Kind regards

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101022/f8384a36/attachment-0001.html 

More information about the jboss-user mailing list