How do I use the @PrePassivate annotation in EJB 3.0?

Byron Tymvios

You will firstly need to import javax.ejb.PrePassivate before you can use the annotation. Then annotate a method with @PrePassivate

public void prePassivate(){
    //Place you pre passivate code here
A @PrePassivate method will be called by the container directly before the bean is passivated (serialized to temporary storage). This is only required for statefull session beans.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.