Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6055

Support multiple <entry> elements for <pooled-connection-factory>

    XMLWordPrintable

Details

    • Hide

      1) Change the default standalone-full.xml to use this:

      <pooled-connection-factory name="hornetq-ra">
          <transaction mode="xa"/>
          <connectors>
              <connector-ref connector-name="in-vm"/>
          </connectors>
          <entries>
              <entry name="java:/JmsXA"/>
              <entry name="java:/MyJmsXA"/>
          </entries>
      </pooled-connection-factory>
      

      2) Start the server.

      3) Observe in the log that the connection factory is only bound to "java:/JmsXA" and not "java:/MyJmsXA":

      INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-1) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
      Show
      1) Change the default standalone-full.xml to use this: <pooled-connection-factory name="hornetq-ra"> <transaction mode="xa"/> <connectors> <connector-ref connector-name="in-vm"/> </connectors> <entries> <entry name="java:/JmsXA"/> <entry name="java:/MyJmsXA"/> </entries> </pooled-connection-factory> 2) Start the server. 3) Observe in the log that the connection factory is only bound to "java:/JmsXA" and not "java:/MyJmsXA": INFO [org.jboss.as.deployment.connector] (MSC service thread 1-1) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
    • Hide

      Specify multiple <pooled-connection-factory> elements.

      Show
      Specify multiple <pooled-connection-factory> elements.

    Description

      Currently a <pooled-connection-factory> can only be bound to a single JNDI location because it only supports one <entry> despite the fact that the schema allows multiple <entry> elements.

      Attachments

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            rhn-support-jbertram Justin Bertram
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: