Class UserTransactionService

java.lang.Object
org.jboss.as.txn.service.UserTransactionService
All Implemented Interfaces:
org.jboss.msc.Service, org.jboss.msc.service.Service<jakarta.transaction.UserTransaction>, org.jboss.msc.value.Value<jakarta.transaction.UserTransaction>

public class UserTransactionService extends Object implements org.jboss.msc.service.Service<jakarta.transaction.UserTransaction>
Service responsible for getting the UserTransaction.
Since:
29-Oct-2010
Author:
Thomas.Diesler@jboss.com
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.jboss.msc.service.ServiceName
    Non-deprecated service name only for use within the subsystem
    static final org.jboss.msc.service.ServiceName
    Deprecated.
    Use the "org.wildfly.transactions.global-default-local-provider" capability to confirm existence of a local provider and org.wildfly.transaction.client.LocalTransactionContext to obtain a UserTransaction reference.

    Fields inherited from interface org.jboss.msc.service.Service

    NULL
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.jboss.msc.service.ServiceController<jakarta.transaction.UserTransaction>
    addService(org.jboss.msc.service.ServiceTarget target)
     
    jakarta.transaction.UserTransaction
     
    void
    start(org.jboss.msc.service.StartContext startContext)
     
    void
    stop(org.jboss.msc.service.StopContext stopContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SERVICE_NAME

      @Deprecated public static final org.jboss.msc.service.ServiceName SERVICE_NAME
      Deprecated.
      Use the "org.wildfly.transactions.global-default-local-provider" capability to confirm existence of a local provider and org.wildfly.transaction.client.LocalTransactionContext to obtain a UserTransaction reference.
    • INTERNAL_SERVICE_NAME

      public static final org.jboss.msc.service.ServiceName INTERNAL_SERVICE_NAME
      Non-deprecated service name only for use within the subsystem
  • Method Details

    • addService

      public static org.jboss.msc.service.ServiceController<jakarta.transaction.UserTransaction> addService(org.jboss.msc.service.ServiceTarget target)
    • start

      public void start(org.jboss.msc.service.StartContext startContext)
      Specified by:
      start in interface org.jboss.msc.Service
    • stop

      public void stop(org.jboss.msc.service.StopContext stopContext)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getValue

      public jakarta.transaction.UserTransaction getValue() throws IllegalStateException
      Specified by:
      getValue in interface org.jboss.msc.value.Value<jakarta.transaction.UserTransaction>
      Throws:
      IllegalStateException