The EJB spec 2.0 reads.... 9.6.4
"Before invoking the ejbFind<METHOD>(...) method, the container must first
synchronize the state of any entity bean instances that are participating in
the same transaction context as is used to execute the ejbFind<METHOD>(...)
by invoking the ejbStore() method on those entity bean instances."
JBoss is not doing this.
We really needed this change, so I implemented it. Let me know if you want
me to commit it. If I get no response in a few days, I'll just commit it
anyways...Isn't that the way it works?
Summary of changes:
- Created a new class TxEntityMap that maps transactions to the entities
that are associated with that transaction
- Added an instance to TxEntityMap to EntityContainer
- EntitySynchronizationInterceptor.register(...) associates the transaction
with the entity bean into the TxEntityMap
- EntitySynchronizationInterceptor.InstanceSynchronization.afterCompletion()
disassociates the entity with the transaction
- Don't worry, I'm pretty sure I clean up everything.
Bill
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development