}
else if( method.getName().equals("begin") )
{
// Begin a new transaction
Integer timeout = (Integer) args[0];
UserTransactionSession session = UserTransactionSessionImpl.getInstance();
value = session.begin(timeout.intValue());
}
else if( method.getName().equals("destroy"))
{
/* We do nothing as the tx will timeout and the tx map is shared
across all sessions as we have no association with the txs
a given client has started.
*/
}
else
{
UserTransactionSession session = UserTransactionSessionImpl.getInstance();
value = method.invoke(session, args);
}
}
catch(InvocationTargetException e)
{