// get the transaction context of this thread:
String transactionId = null;
try
{
transactionId = activityManager.currentTransaction().toString();
}
catch (SystemException e)
{
System.err.println("bookSeats: unable to obtain a transaction context!");
e.printStackTrace(System.err);