JBoss Community

Re: removalTimeoutInSeconds & subsequent removal?

created by mikka2010 in EJB 3.0 - View the full discussion

Hello,

 

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

Michael

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community