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

Can not deploy a @ConnectionFactoryDefinition if the RA has more <connection-definitions>


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.ER5
    • 7.0.0.ER4
    • JCA
    • None

      Steps to reproduce:

      • add a 2nd connection-defintion to testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jca/deployment/ra.xml:
      • Run the WarServletDeploymentTestCase test
        => it fails because the ConnectionFactoryDefinition objects are no longer deployed.

      After debugging, the test fails because the deployed connection definitions are not activated.
      The code at org/jboss/as/connector/services/resourceadapters/ResourceAdapterActivatorService.java:232 is preventing the activation and looks suspicious.
      It expects that all the MCF in the RA (raMcfClasses) must all be in the activation (ijMcfClasses).
      With a 2nd <connection-definition> in the RA, it is no longer the case (as the activation only contains a single MCF (MultipleManagedConnectionFactory1).

      If I change the code so that it checks that all the MCF in the activations are in the RA, the test passes again.

      This issue is preventing me to reuse the code handling the @ConnectionFactoryDefinition to support the @JMSConnectionFactoryDefinition (my JMS RA defines 3 MCF for generic/queue/topic CFs but my activation only defines a single MCF per @JMSConnectionFactoryDefinition).

      I've not run it but the same issue is likely for admin objects too (the code in checkActivation is similar)

            rhn-engineering-lgao Lin Gao
            rhn-engineering-lgao Lin Gao
            0 Vote for this issue
            3 Start watching this issue