Hi all,

I have a stateful session bean with a @PostConstruct method.

@Stateful
public class MyStatefulBeanImpl implements MyStatefulBean {

        public ProcessContextImpl() {
                log.info("CREATE NEW MyStatefulBeanImpl ...");
        }

        @PostConstruct
        public void init() {
                log.info("Init ...");
                ...
        }


So now I'm wondering why the post construct is invoked only at the first time I 
use such kind of stateful session bean.
A second lookup over JNDI or using of the @EJB annotation in an other SB 
doesn't call neither the constructor nor the post construct method.
The logging statement are only once in my whole log file.

I know there is cache for stateless session beans, but is there also one for 
stateful session beans? Or do I miss something.

Thank you for your help

Marco

Reply via email to