Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-16722

ContextServiceImpl.getTransactionSetupProvider returns null when use-transaction-setup-provider=true

    XMLWordPrintable

Details

    • ---
    • ---

    Description

      When a new Context Service is created like in the following:

      /subsystem=ee/context-service=testContextService1:add(jndi-name=java:jboss/ee/concurrency/contextservice/EEConcurrencyUtilitiesManagementTestCase, use-transaction-setup-provider=true)
      

      Then, the following code, should allow to get the org.glassfish.enterprise.concurrent.spi.TransactionSetupProvider implemented by application server:

      final String jndiName = "java:jboss/ee/concurrency/contextservice/EEConcurrencyUtilitiesManagementTestCase";
      jakarta.enterprise.concurrent.ContextService service = (jakarta.enterprise.concurrent.ContextService)new InitialContext().lookup(jndiName);
      org.glassfish.enterprise.concurrent.ContextServiceImpl contextServiceIml = (org.glassfish.enterprise.concurrent.ContextServiceImpl)service;
      
      // returns null!!
      contextServiceIml.getTransactionSetupProvider();
      

      Attachments

        Issue Links

          Activity

            People

              emartins@redhat.com Eduardo Martins
              tborgato@redhat.com Tommaso Borgato
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: