-
Bug
-
Resolution: Done
-
Major
-
3.3.0.Beta1
-
None
1. Create a Seam project.
2. Create a statefull component:
package org.domain.seamdemo.session; import javax.ejb.Remove; import javax.ejb.Stateful; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Destroy; @Stateful @Name("DemoForm") public class DemoFormBean { @Remove public void destroy() {} }
3. There is a warning about missing @Destory method. Fix it using "Add @Destory method" quick fix.
4. See the result:
package org.domain.seamdemo.session; import javax.ejb.Remove; import javax.ejb.Stateful; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Destroy; @Stateful @Name("DemoForm") public class DemoFormBean { @Destroy @Remove public void destroy() {} }