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

Only 1 ConnectionDefinition is recognized while 2 are defined in ironjacamar.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • WildFly/IronJacamar 1.4.2.Final
    • Deployer
    • None
    • Hide

      Define & use a ironjacamar.xml deplyment & activation file with 2 ConnectionDefinitions

      Show
      Define & use a ironjacamar.xml deplyment & activation file with 2 ConnectionDefinitions

      Hi
      Using an ironjacamar.xml with 2 ConnectionDefinitions, IJ 1.4.6-Final is recognizing/parsing only the first one as displayed by the trace:
      2018-01-04 09:36:47,642 DEBUG [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) ConnectionDefinitions: 1

      2018-01-04 09:36:47,580 TRACE [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) Activation=<ironjacamar><transaction-support>LocalTransaction</transaction-support><connection-definitions><connection-definition class-name="com.scort.ctg.cics.eci.jca.EciManagedConnectionFactory" jndi-name="java:jboss/eis/dmconnectionFactory" enabled="true" use-java-context="true" pool-name="dmconnectionFactory" use-ccm="true" sharable="true" enlistment="true" connectable="false" enlistment-trace="false"><config-property name="connectionUrl">tcp://localhost:2006</config-property><config-property name="serverName">ECI111</config-property><pool><min-pool-size>0</min-pool-size><max-pool-size>100</max-pool-size><prefill>false</prefill><use-strict-min>false</use-strict-min><flush-strategy>FailingConnectionOnly</flush-strategy></pool><timeout><blocking-timeout-millis>0</blocking-timeout-millis><idle-timeout-minutes>0</idle-timeout-minutes></timeout><validation><background-validation>false</background-validation><use-fast-fail>false</use-fast-fail></validation></connection-definition><connection-definition class-name="com.scort.ctg.cics.eci.bridge3270.Bridge3270ManagedConnectionFactory" jndi-name="java:jboss/eis/ftconnectionFactory" enabled="true" use-java-context="true" pool-name="ftconnectionFactory" use-ccm="true" sharable="true" enlistment="true" connectable="false" enlistment-trace="false"><config-property name="connectionUrl">tcp://localhost:2006</config-property><config-property name="serverName">ECI111</config-property><xa-pool><min-pool-size>0</min-pool-size><max-pool-size>100</max-pool-size><prefill>false</prefill><use-strict-min>false</use-strict-min><flush-strategy>FailingConnectionOnly</flush-strategy><pad-xid>false</pad-xid><wrap-xa-resource>true</wrap-xa-resource></xa-pool><timeout><blocking-timeout-millis>0</blocking-timeout-millis><idle-timeout-minutes>0</idle-timeout-minutes></timeout><validation><background-validation>false</background-validation><use-fast-fail>false</use-fast-fail></validation></connection-definition></connection-definitions></ironjacamar>
      2018-01-04 09:36:47,580 TRACE [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) ActivateDeployment=true
      2018-01-04 09:36:47,627 TRACE [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) ResourceAdapter: com.scort.ctg.cics.eci.jca.EciResourceAdapter
      2018-01-04 09:36:47,627 TRACE [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) ResourceAdapter defined in classloader: ModuleClassLoader for Module "deployment.AcctFtCics-ear-1.0.0.ear.scortcicsecirar-3.1.0.rar" from Service Module Loader
      2018-01-04 09:36:47,627 DEBUG [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) CdMeta: <connection-definition><managedconnectionfactory-class>com.scort.ctg.cics.eci.jca.EciManagedConnectionFactory</managedconnectionfactory-class><config-property><description>URL of the CTG</description><config-property-name>connectionUrl</config-property-name><config-property-type>java.lang.String</config-property-type></config-property><config-property><description>Server (CICS) Name</description><config-property-name>serverName</config-property-name><config-property-type>java.lang.String</config-property-type></config-property><connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface><connectionfactory-impl-class>com.scort.ctg.cics.eci.jca.EciConnectionFactory</connectionfactory-impl-class><connection-interface>javax.resource.cci.Connection</connection-interface><connection-impl-class>com.scort.ctg.cics.eci.jca.EciConnection</connection-impl-class></connection-definition>
      2018-01-04 09:36:47,642 DEBUG [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) ConnectionDefinitions: 1

      Below is a formatted Activation content extracted from the trace 2018-01-04 09:36:47,580 TRACE [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) Activation=

      <ironjacamar>
      <transaction-support>LocalTransaction</transaction-support>
      <connection-definitions>
      <connection-definition
      class-name="com.scort.ctg.cics.eci.jca.EciManagedConnectionFactory"
      jndi-name="java:jboss/eis/dmconnectionFactory" enabled="true"
      use-java-context="true" pool-name="dmconnectionFactory" use-ccm="true"
      sharable="true" enlistment="true" connectable="false"
      enlistment-trace="false">
      <config-property name="connectionUrl">tcp://localhost:2006
      </config-property>
      <config-property name="serverName">ECI111</config-property>
      <pool>
      <min-pool-size>0</min-pool-size>
      <max-pool-size>100</max-pool-size>
      <prefill>false</prefill>
      <use-strict-min>false</use-strict-min>
      <flush-strategy>FailingConnectionOnly</flush-strategy>
      </pool>
      <timeout>
      <blocking-timeout-millis>0</blocking-timeout-millis>
      <idle-timeout-minutes>0</idle-timeout-minutes>
      </timeout>
      <validation>
      <background-validation>false</background-validation>
      <use-fast-fail>false</use-fast-fail>
      </validation>
      </connection-definition>
      <connection-definition
      class-name="com.scort.ctg.cics.eci.bridge3270.Bridge3270ManagedConnectionFactory"
      jndi-name="java:jboss/eis/ftconnectionFactory" enabled="true"
      use-java-context="true" pool-name="ftconnectionFactory" use-ccm="true"
      sharable="true" enlistment="true" connectable="false"
      enlistment-trace="false">
      <config-property name="connectionUrl">tcp://localhost:2006
      </config-property>
      <config-property name="serverName">ECI111</config-property>
      <xa-pool>
      <min-pool-size>0</min-pool-size>
      <max-pool-size>100</max-pool-size>
      <prefill>false</prefill>
      <use-strict-min>false</use-strict-min>
      <flush-strategy>FailingConnectionOnly</flush-strategy>
      <pad-xid>false</pad-xid>
      <wrap-xa-resource>true</wrap-xa-resource>
      </xa-pool>
      <timeout>
      <blocking-timeout-millis>0</blocking-timeout-millis>
      <idle-timeout-minutes>0</idle-timeout-minutes>
      </timeout>
      <validation>
      <background-validation>false</background-validation>
      <use-fast-fail>false</use-fast-fail>
      </validation>
      </connection-definition>
      </connection-definitions>
      </ironjacamar>

        1. ironjacamar.xml
          3 kB
        2. server.log
          31 kB

              Unassigned Unassigned
              fandremxw Francis ANDRE (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: