Public feed
#723041
/* * TestSessionBean.java * * Created on Oct 2, 2007, 5:54:15 PM * * To change this template, choose Tools | Templates * and open the template in the editor. */package test;import javax.annotation.PostConstruct;import javax.ejb.PostActivate;import javax.ejb.PrePassivate;import javax.ejb.Stateful;/** * * @author vanob */@Statefulpublic class TestSessionBean implements TestSessionRemote { private Parent p; public boolean businessMethod() { return p.getT() != null; } @PostConstruct public void init() { p=new Parent(); p.setT("I'm not null"); } @PrePassivate public void passivate() { } @PostActivate public void activate() { p.setT("I'm not null"); }}