Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-915

Activation of connector 1.5 archive doesn't happen, when ironjacamar.xml doesn't contain class-names

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.CR1
    • 1.0.13.Final, 1.1.0.Beta2
    • Deployer
    • None
    • Hide

      Try to deploy .rar, containing
      ra.xml like this:

      <?xml version="1.0" encoding="UTF-8"?>

      <!-- $Id $ -->

      <connector xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
      http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
      version="1.5">

      <vendor-name>Red Hat Middleware LLC</vendor-name>
      <eis-type>Test RA</eis-type>
      <resourceadapter-version>0.1</resourceadapter-version>

      <resourceadapter>
      <resourceadapter-class>org.jboss.jca.deployers.test.rars.inout.SimpleResourceAdapter</resourceadapter-class>

      <outbound-resourceadapter>
      <connection-definition>
      <managedconnectionfactory-class>org.jboss.jca.deployers.test.rars.inout.SimpleManagedConnectionFactory</managedconnectionfactory-class>

      <connectionfactory-interface>org.jboss.jca.deployers.test.rars.inout.SimpleConnectionFactory</connectionfactory-interface>
      <connectionfactory-impl-class>org.jboss.jca.deployers.test.rars.inout.SimpleConnectionFactoryImpl</connectionfactory-impl-class>
      <connection-interface>org.jboss.jca.deployers.test.rars.inout.SimpleConnection</connection-interface>
      <connection-impl-class>org.jboss.jca.deployers.test.rars.inout.SimpleConnectionImpl</connection-impl-class>
      </connection-definition>
      <reauthentication-support>false</reauthentication-support>
      </outbound-resourceadapter>
      <inbound-resourceadapter>
      <messageadapter>
      <messagelistener>
      <messagelistener-type>org.jboss.jca.deployers.test.rars.inout.SimpleMessageListener</messagelistener-type>
      <activationspec>
      <activationspec-class>org.jboss.jca.deployers.test.rars.inout.SimpleActivationSpec</activationspec-class>
      </activationspec>
      </messagelistener>
      </messageadapter>
      </inbound-resourceadapter>
      <adminobject>
      <adminobject-interface>
      org.jboss.jca.deployers.test.rars.inout.SimpleAdminObject</adminobject-interface>
      <adminobject-class>org.jboss.jca.deployers.test.rars.inout.SimpleAdminObjectImpl</adminobject-class>
      </adminobject>
      </resourceadapter>
      </connector>

      and ironjacamar.xml like this:

      <?xml version="1.0" encoding="UTF-8"?>

      <ironjacamar>
      <config-property name="first">rara</config-property>
      <config-property name="second">false</config-property>
      <transaction-support>LocalTransaction</transaction-support>
      <connection-definitions>
      <connection-definition jndi-name="java:/ijwc-activation">
      <pool>
      <prefill>false</prefill>
      <use-strict-min>false</use-strict-min>
      </pool>
      <config-property name="first">ccc</config-property>
      <config-property name="second">a</config-property>
      </connection-definition>
      </connection-definitions>

      <admin-object jndi-name="java:/ao/ijwc-activation">
      <config-property name="first">aoao</config-property>
      <config-property name="second">0.99</config-property>
      </admin-object>
      </ironjacamar>

      Show
      Try to deploy .rar, containing ra.xml like this: <?xml version="1.0" encoding="UTF-8"?> <!-- $Id $ --> <connector xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd " version="1.5"> <vendor-name>Red Hat Middleware LLC</vendor-name> <eis-type>Test RA</eis-type> <resourceadapter-version>0.1</resourceadapter-version> <resourceadapter> <resourceadapter-class>org.jboss.jca.deployers.test.rars.inout.SimpleResourceAdapter</resourceadapter-class> <outbound-resourceadapter> <connection-definition> <managedconnectionfactory-class>org.jboss.jca.deployers.test.rars.inout.SimpleManagedConnectionFactory</managedconnectionfactory-class> <connectionfactory-interface>org.jboss.jca.deployers.test.rars.inout.SimpleConnectionFactory</connectionfactory-interface> <connectionfactory-impl-class>org.jboss.jca.deployers.test.rars.inout.SimpleConnectionFactoryImpl</connectionfactory-impl-class> <connection-interface>org.jboss.jca.deployers.test.rars.inout.SimpleConnection</connection-interface> <connection-impl-class>org.jboss.jca.deployers.test.rars.inout.SimpleConnectionImpl</connection-impl-class> </connection-definition> <reauthentication-support>false</reauthentication-support> </outbound-resourceadapter> <inbound-resourceadapter> <messageadapter> <messagelistener> <messagelistener-type>org.jboss.jca.deployers.test.rars.inout.SimpleMessageListener</messagelistener-type> <activationspec> <activationspec-class>org.jboss.jca.deployers.test.rars.inout.SimpleActivationSpec</activationspec-class> </activationspec> </messagelistener> </messageadapter> </inbound-resourceadapter> <adminobject> <adminobject-interface> org.jboss.jca.deployers.test.rars.inout.SimpleAdminObject</adminobject-interface> <adminobject-class>org.jboss.jca.deployers.test.rars.inout.SimpleAdminObjectImpl</adminobject-class> </adminobject> </resourceadapter> </connector> and ironjacamar.xml like this: <?xml version="1.0" encoding="UTF-8"?> <ironjacamar> <config-property name="first">rara</config-property> <config-property name="second">false</config-property> <transaction-support>LocalTransaction</transaction-support> <connection-definitions> <connection-definition jndi-name="java:/ijwc-activation"> <pool> <prefill>false</prefill> <use-strict-min>false</use-strict-min> </pool> <config-property name="first">ccc</config-property> <config-property name="second">a</config-property> </connection-definition> </connection-definitions> <admin-object jndi-name="java:/ao/ijwc-activation"> <config-property name="first">aoao</config-property> <config-property name="second">0.99</config-property> </admin-object> </ironjacamar>

      In corner case, when deployed .rar, containing 1 connection definition and 1 admin object and ironjacamar.xml file contains <connection-definition> and <admin-object> elements both without "class-name" attribute, activation doesn't happen.

            rhn-engineering-lgao Lin Gao
            vrastsel_jira Vladimir Rastseluev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: