// 2. Transactionally use the Hello object
try
{
// Obtain a reference to the current transaction and begin it
System.out.println("Creating a transaction !");
Current current = OTSManager.get_current();
current.begin();
// Transactionally invoke the print_hello operation. This is purely to validate the installation of the product
System.out.println("Call the Hello Server !");
hello.print_hello();
// Complete the transaction normally
System.out.println("Commit transaction");
current.commit(false);
}
catch (SubtransactionsUnavailable subtransactionsUnavailable)
{
// Display as much help as possible to the user track down the configuration problem
System.err.println("Trailmap Error: Problem during begin: " + subtransactionsUnavailable);