Hello all!

This might be a very stupid question. If so, please enlighten me... ;-)

I was wondering:
According to the specs, a stateful session bean has to be serializable so that 
the container can passivate it.
Most stateful session beans will centain a @PersistenceContext declaring an 
EntityManager.
Now I noticed that javax.persistence.EntityManager does not extend Serializable 
and thus makes no guarantee about whether the actual EntityManagerImpl injected 
by the container will be serializable.
Should I declare references to EntityManager in my SSBs as "transient" to be on 
the safe side? Or will I run into other problems?

Regards,

Phil

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039881#4039881

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039881
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to