[
https://issues.jboss.org/browse/WFLY-1796?page=com.atlassian.jira.plugin....
]
Jeff Mesnil commented on WFLY-1796:
-----------------------------------
The use of a map for the connectors is for backwards compatibility.
A previous version of HornetQ was requiring to defining a tuple of live/backup connectors.
That's why AS7 (and now WildFly) uses a map representation for its connectors
attribute.
Then, it was changed in HornetQ and only a list of connectors was required. But we could
not change the format of the pooled-connection-factory:add operation or the older clients
would not be able to work anymore.
I'll check whether we can transform the operation if a list is passed to a map (with
undefined values) but I am not sure that this functionality is available in WildFly.
Creating a pooled-connection-factory via the CLI requires confusing
syntax
--------------------------------------------------------------------------
Key: WFLY-1796
URL:
https://issues.jboss.org/browse/WFLY-1796
Project: WildFly
Issue Type: Feature Request
Components: JMS
Affects Versions: 8.0.0.Alpha3
Reporter: Justin Bertram
Assignee: Jeff Mesnil
When creating a pooled-connection factory via the CLI the syntax for the
"connector" is confusing. Here is a simple example:
{noformat}
/subsystem=messaging/hornetq-server=default/pooled-connection-factory=my-pooled-connection-factory/:add(connector={"in-vm"
=> "xyz"}, entries=["java:/MyPooledCF"])
{noformat}
The "connector" wants a list of name-value pairs, but only the name is taken
into consideration. This command results in this XML:
{noformat}
<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>
{noformat}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira