Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1796

Creating a pooled-connection-factory via the CLI requires confusing syntax

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 8.0.0.Alpha4
    • 8.0.0.Alpha3
    • JMS
    • None

    Description

      When creating a pooled-connection factory via the CLI the syntax for the "connector" is confusing. Here is a simple example:

      /subsystem=messaging/hornetq-server=default/pooled-connection-factory=my-pooled-connection-factory/:add(connector={"in-vm" => "xyz"}, entries=["java:/MyPooledCF"])
      

      The "connector" wants a list of name-value pairs, but only the name is taken into consideration. This command results in this XML:

      <pooled-connection-factory name="my-pooled-connection-factory">
          <connectors>
              <connector-ref connector-name="in-vm"/>
          </connectors>
          <entries>
              <entry name="java:/MyPooledCF"/>
          </entries>
      </pooled-connection-factory>
      

      The "xyz" is completely unnecessary.

      I believe this is because org.jboss.as.messaging.jms.ConnectionFactoryAttributes.Common#CONNECTOR is defined as a org.jboss.as.controller.SimpleMapAttributeDefinition and it should probably just be a org.jboss.as.controller.PrimitiveListAttributeDefinition when used in the pooled-connection-factory.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: