Class UserTransactionService

  • All Implemented Interfaces:
    org.jboss.msc.Service, org.jboss.msc.service.Service<javax.transaction.UserTransaction>, org.jboss.msc.value.Value<javax.transaction.UserTransaction>

    public class UserTransactionService
    extends org.jboss.msc.service.AbstractService<javax.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 org.jboss.msc.service.ServiceName INTERNAL_SERVICE_NAME
      Non-deprecated service name only for use within the subsystem
      static 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.
      • Fields inherited from interface org.jboss.msc.service.Service

        NULL, NULL_VALUE
    • Field Detail

      • 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 Detail

      • addService

        public static org.jboss.msc.service.ServiceController<javax.transaction.UserTransaction> addService​(org.jboss.msc.service.ServiceTarget target)
      • getValue

        public javax.transaction.UserTransaction getValue()
                                                   throws IllegalStateException
        Specified by:
        getValue in interface org.jboss.msc.value.Value<javax.transaction.UserTransaction>
        Overrides:
        getValue in class org.jboss.msc.service.AbstractService<javax.transaction.UserTransaction>
        Throws:
        IllegalStateException