The following code fragment
shows how the BeginTransactionContext method is issued in a Java environment:
public void beginTransactionContext (String obj, StringHolder tCtxt) throws Exception
{
try
{
iSecurityAdmin.BeginTransactionContext (obj, 0, tCtxt);
}
catch (Exception e)
{
System.out.println("BeginTransactionContext: Exceptions");
e.printStackTrace();
throw e;
}
}
The following example
issues the BeginTransactionContext method to begin a transaction context
on a preexisting Tree object defined by the object variable Tree_URN:
// Define a holder for the transaction context
StringHolder tCtxt = new StringHolder();
// Begin a transaction context on the Tree object.
iSecurityAdmin.BeginTransactionContext(Tree_URN, tCtxt);