static void clean() throws Exception { final UserTransaction tx = InitialContext.doLookup(\"UserTransaction\"); tx.begin(); try { final DataSource ds = In
The only way to do this properly is to use a transaction manager and two phase commit XA drivers for all databases involved in this transaction.