Class ServiceXaWrapper

All Implemented Interfaces:
Runnable, XAResource

@Deprecated public class ServiceXaWrapper extends GenericXaResource
Deprecated.
- Use ServiceSynchronization instead (via LocalDispatcher)
ServiceXaWrapper - XA Resource wrapper for running services on commit() or rollback()
  • Field Details

  • Constructor Details

    • ServiceXaWrapper

      protected ServiceXaWrapper()
      Deprecated.
    • ServiceXaWrapper

      public ServiceXaWrapper(DispatchContext dctx)
      Deprecated.
  • Method Details

    • setCommitService

      public void setCommitService(String serviceName, Map<String,? extends Object> context)
      Deprecated.
      Sets the service to run on commit()
      Parameters:
      serviceName - Name of service to run
      context - Context to use when running
    • setCommitService

      public void setCommitService(String serviceName, Map<String,? extends Object> context, boolean async, boolean persist)
      Deprecated.
      Sets the service to run on commit()
      Parameters:
      serviceName - Name of service to run
      context - Context to use when running
      async - override default async behavior
    • setCommitService

      public void setCommitService(String serviceName, String runAsUser, Map<String,? extends Object> context, boolean async, boolean persist)
      Deprecated.
      Sets the service to run on commit()
      Parameters:
      serviceName - Name of service to run
      runAsUser - UserLoginID to run as
      context - Context to use when running
      async - override default async behavior
    • getCommitService

      public String getCommitService()
      Deprecated.
      Returns:
      The name of the service to run on commit()
    • getCommitContext

      public Map<String,? extends Object> getCommitContext()
      Deprecated.
      Returns:
      The context used when running the commit() service
    • setRollbackService

      public void setRollbackService(String serviceName, Map<String,? extends Object> context)
      Deprecated.
      Sets the service to run on rollback()
      Parameters:
      serviceName - Name of service to run
      context - Context to use when running
    • setRollbackService

      public void setRollbackService(String serviceName, Map<String,? extends Object> context, boolean async, boolean persist)
      Deprecated.
      Sets the service to run on rollback()
      Parameters:
      serviceName - Name of service to run
      context - Context to use when running
      async - override default async behavior
    • setRollbackService

      public void setRollbackService(String serviceName, String runAsUser, Map<String,? extends Object> context, boolean async, boolean persist)
      Deprecated.
      Sets the service to run on rollback()
      Parameters:
      serviceName - Name of service to run
      runAsUser - userLoginId to run the service as
      context - Context to use when running
      async - override default async behavior
    • getRollbackService

      public String getRollbackService()
      Deprecated.
      Returns:
      The name of the service to run on rollback()
    • getRollbackContext

      public Map<String,? extends Object> getRollbackContext()
      Deprecated.
      Returns:
      The context used when running the rollback() service
    • enlist

      public void enlist() throws XAException
      Deprecated.
      Description copied from class: GenericXaResource
      Enlists this resource in the current transaction
      Overrides:
      enlist in class GenericXaResource
      Throws:
      XAException
    • commit

      public void commit(Xid xid, boolean onePhase) throws XAException
      Deprecated.
      Specified by:
      commit in interface XAResource
      Specified by:
      commit in class GenericXaResource
      Throws:
      XAException
      See Also:
    • rollback

      public void rollback(Xid xid) throws XAException
      Deprecated.
      Specified by:
      rollback in interface XAResource
      Specified by:
      rollback in class GenericXaResource
      Throws:
      XAException
      See Also:
    • prepare

      public int prepare(Xid xid) throws XAException
      Deprecated.
      Specified by:
      prepare in interface XAResource
      Overrides:
      prepare in class GenericXaResource
      Throws:
      XAException
    • runService

      protected final void runService(String service, Map<String,? extends Object> context, boolean persist, int mode, int type) throws XAException
      Deprecated.
      Throws:
      XAException