Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23843

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • None
    • 8.0.0.Beta
    • Concurrency Utilities
    • None
    • False
    • None
    • False

      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();
      

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

                Created:
                Updated:
                Resolved: