On Dec 12, 2006, at 1:51 PM, Craig L Russell wrote:
Hi Dain,
On Dec 11, 2006, at 9:58 AM, Dain Sundstrom wrote:
I'm really working on a replacement for the OpenEJB Castor CMP
container that uses OpenJPA instead. I'm just hacking in the CMRs
right now, hence all the relationship questions. I hope to have
the basics done in a few days.
If you're doing this for a Java EE 5 container, you might want to
check out the TransactionSynchronizationRegistry that is new in jta
for Java EE 5. This is an interface that needs to be implemented in
a compliant server and gives you the tools needed to keep such
things as JTA EntityManagers straight.
That is nice if you are in a JEE server and if it has finished
implementing the JTA 1.1. The transaction listener that Patrick
mentioned should work for both JTA and resource local transactions.
-dain