[jboss-dev-forums] [Design of EJB 3.0] - Re: Redesign extended persistence context
bstansberry@jboss.com
do-not-reply at jboss.com
Wed Aug 29 13:26:00 EDT 2007
anonymous wrote : 1. The life cycle of all SFSB using that XPC are connected. Maybe we can limit that to just the passivation/activation.
They are connected, yes, but it should be possible to independently remove the beans that use the same XPC with the existing mechanism. I'm quite certain I wrote tests for that. Admittedly, the way it works is ugly.
anonymous wrote : 2. Partial replication should be possible.
What do you mean here?
a) Partial replication of the XPC (i.e. unflushed changes)
b) Fine-grained (PojoCache) replication of the SFSBs
c) Independent replication of the SFSBs that share the XPC
d) Something else
e) All of the above.
For A, Steve Ebersole is going to work on that at the Hibernate level.
For C, the stuff discussed at http://jira.jboss.com/jira/browse/EJBTHREE-1039 can help with that. That is, alter the serialization of the bean so the the entity id is written to the stream rather than the entity. Ensure the XPC is deserialized before the bean. If we can solve that problem well, the need to serialize in one unit all the beans that use the XPC might be removed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079282#4079282
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079282
More information about the jboss-dev-forums
mailing list