public ExternalLocalTransaction createLocalTransaction()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createLocalTransaction");

        ExternalLocalTransaction instance;
        
        if (_persistenceSupports1PCOptimisation)
        {
            instance = new MSDelegatingLocalTransactionSynchronization(_ms, _persistence, getMaximumTransactionSize());
        }
        else
        {
            instance = new MSDelegatingLocalTransaction(_ms, _persistence, getMaximumTransactionSize());
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "createLocalTransaction", "return="+instance);
        return instance;
    }
public ExternalLocalTransaction createLocalTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createLocalTransaction" ) ; ExternalLocalTransaction instance ; if ( _persistenceSupports1PCOptimisation ) { instance = new MSDelegatingLocalTransactionSynchronization ( _ms , _persistence , getMaximumTransactionSize ( ) ) ; } else { instance = new MSDelegatingLocalTransaction ( _ms , _persistence , getMaximumTransactionSize ( ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "createLocalTransaction" , "return=" + instance ) ; return instance ; }
This method is used to create a LocalResource that can either be enlisted as
a particpant in a WebSphere LocalTransactionCoordination scope or used directly
to demarcate a one-phase Resource Manager Local Transaction.

@return An instance of Object