[jboss-dev-forums] [Design of EJB 3.0] - Re: Redesign extended persistence context

wolfc do-not-reply at jboss.com
Tue Aug 28 04:58:51 EDT 2007


Passivation/activation isn't a problem, because by definition we only passivate if the entities are serializable (EJB 3 4.2) and we treat the entity as a serializable object. Thus the entity becomes detached after activation (JPA 3.2.4). All working according to spec.

Replication is a problem. Not so much for a transaction scoped persistence context, because you can only replicate over transactions and not within. Thus the entities becomes detached. But I agree that a XPC has a problem if a SFSB keeps a reference to an entity.
As long as we do a passivation/activation cycle during replication, we're okay because the first paragraph applies.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078636



More information about the jboss-dev-forums mailing list