}
// Create a new JBoss transaction
AtomicAction tx = new AtomicAction();
// Allocate space to monitor the transaction, this variable is overriden each time the transaction is used.
int actionStatus = tx.begin(); // Top level begin
// If the transaction was successful began
if (actionStatus == ActionStatus.RUNNING)
{
// Enlist the participant