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

Details

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

    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:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: