1 Reply Latest reply on Oct 18, 2006 10:24 AM by Peter Johnson

    finding OAInterface ?

    Gladwin Raymond Newbie

      where we will find the OAInterface ? it says compiler error when i tried to compile the following code:

      import org.omg.CosTransactions.*;
      import com.arjuna.ats.jts.*;
      import com.arjuna.orbportability.*;

      public class DemoImplementation extends generated.Demo ._DemoInterfaceStub
      {
      public void work() throws generated.Demo.DemoException
      {
      try
      {

      Control control = OTSManager.get_current().get_control();
      Coordinator coordinator = control.get_coordinator();
      DemoResource resource = new DemoResource();
      OAInterface.objectIsReady(resource);
      coordinator.register_resource(resource);

      }
      catch (Exception e)
      {
      throw new DemoException();
      }
      }

      }

      help please