try
{
ORBInterface.initORB(args, null);
OAInterface.initOA();
Current current = OTS.get_current();
try
{
current.commit(true);
correct = false;
}
catch (NoTransaction noTransaction)
{
}
if (!correct)
{
System.out.println("Failed");
return;
}
}
catch (Exception exception)
{
System.out.println("Failed");
System.err.println("Test036.main: " + exception);
exception.printStackTrace(System.err);
return;
}
try
{
OAInterface.shutdownOA();
ORBInterface.shutdownORB();
}
catch (Exception exception)
{
System.err.println("Test036.main: " + exception);
exception.printStackTrace(System.err);
}
//now do the test again and see what happens
try
{
ORBInterface.initORB(args, null);
OAInterface.initOA();
Current current = OTS.get_current();
try
{
current.commit(true);
correct = false;
}
catch (NoTransaction noTransaction)
{
}