The following code fragment
shows how the EndTransactionContext method is issued in a Java environment:
public void endTransactionContext (String transCtxt, int options) throws
Exception
{
try
{
iSecurityAdmin.EndTransactionContext (transCtxt, "", options);
}
catch (Exception e)
{
System.out.println("EndTransactionContext: Exceptions");
e.printStackTrace();
throw e;
}
}
The following example
issues an EndTransactionContext method to specify to commit the changes
indicated in tCtxt.value:
iSecurityAdmin.EndTransactionContext(tCtxt.value, ISecurityAdmin.SECAD_COMMIT_TC);