Hi Rickard,
> javax.transaction.Synchronization should do the trick. Get the TM from
> JNDI by doing new InitialContext().lookup("TransactionManager"), and do
> getTransaction().registerSynchronization(myOldArbitrayObject), where the
> mOAO implements the Synch interface.
>
> Should work. If it doesn't that could indicate a bug in the TM.
I looked at that interface last night - it doesn't have an "afterBegin"
method, so I'd have to extend the Synchronization interface to include such
a method, but the client code would have to explicitly call it after the
Transaction's begin method, which is suboptimal.
Thanks,
Kirk