[jboss-jira] [JBoss JIRA] (AS7-5107) define connectors as alternatives to discovery-group
RH Bugzilla Integration (JIRA)
jira-events at lists.jboss.org
Tue Aug 27 07:50:26 EDT 2013
[ https://issues.jboss.org/browse/AS7-5107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799492#comment-12799492 ]
RH Bugzilla Integration commented on AS7-5107:
----------------------------------------------
Masafumi Miura <mmiura at redhat.com> made a comment on [bug 1001612|https://bugzilla.redhat.com/show_bug.cgi?id=1001612]
### Description of problem:
As per AS7-5107, cluster-connections, bridges and JMS connection factories defines either connectors or discovery-group but not both.
Therefore, since EAP 6.1.0 we can not write "discovery-group-name" attribute to JMS connection factories when the connection factories is already defined with "connector" attribute:
~~~
[standalone at localhost:9999 /] /subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory:write-attribute(name=discovery-group-name,value=dg-group1)
{
"outcome" => "failed",
"failure-description" => "JBAS011630: Alternative attribute of (discovery-group-name) is already defined.",
"rolled-back" => true
}
~~~
Also we can not undefine predefined "connector" attribute of the connection factories:
~~~
[standalone at localhost:9999 /] /subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory:undefine-attribute(name=connector)
{
"outcome" => "failed",
"failure-description" => "JBAS014749: Operation handler failed: JBAS011664: Runtime handling for connector is not implemented",
"rolled-back" => true
}
~~~
I also tried batch CLI but it did not help. We can not undefine the predefined "connector" attribute regardless of using batch CLI or not:
~~~
[standalone at localhost:9999 /] batch
[standalone at localhost:9999 / #] /subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory:undefine-attribute(name=connector)
#1 /subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory:undefine-attribute(name=connector)
[standalone at localhost:9999 / #] /subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory:write-attribute(name=discovery-group-name,value=dg-group1)
#2 /subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory:write-attribute(name=discovery-group-name,value=dg-group1)
[standalone at localhost:9999 / #] list-batch
#1 /subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory:undefine-attribute(name=connector)
#2 /subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory:write-attribute(name=discovery-group-name,value=dg-group1)
[standalone at localhost:9999 / #] run-batch
{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS011630: Alternative attribute of (connector) is already defined."}}
~~~
To change change "connector" to "discovery-group-name", we need to remove the existing connection factories then recreate a new connection factories. For example:
~~~
/subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory:remove
:reload
/subsystem=messaging/hornetq-server=default/connection-factory=RemoteConnectionFactory/:add(entries=["java:jboss/exported/jms/RemoteConnectionFactory"],discovery-group-name=dg-group1)
~~~
The customer asks us for adding functionality to change "connector" to "discovery-group-name" (and vice-versa) for the existing JMS connection factories without removing the connection factories. Because doing remove and create connection factories lose all predefined attribute for the connection factories.
### Version-Release number of selected component (if applicable):
EAP 6.1.0 / "full" or "full-ha" profile
### How reproducible:
Everytime.
### Steps to Reproduce:
1. Start out-of-the-box EAP 6.1.0 with standalone-full-ha.xml
2. Try out the above CLI scripts
### Actual results:
You can not write "discovery-group-name" attribute to the connection factories and also you can not undefine predefined "connector" attribute of the connection factories.
### Expected results:
You can write "discovery-group-name" attribute to the connection factories and also you can undefine predefined "connector" attribute of the connection factories in order to change "connector" to "discovery-group-name".
> define connectors as alternatives to discovery-group
> ----------------------------------------------------
>
> Key: AS7-5107
> URL: https://issues.jboss.org/browse/AS7-5107
> Project: Application Server 7
> Issue Type: Bug
> Components: JMS
> Affects Versions: 7.1.2.Final (EAP)
> Reporter: Jeff Mesnil
> Assignee: Jeff Mesnil
> Fix For: EAP 6.1.0.Alpha (7.2.0.Final)
>
>
> cluster-connections, bridges and JMS connection factories must define either connectors or discovery-group but not both.
> The choice is handled in the messaging susbsystem parser but it's not enforced by the attributes' definitions. Admin operations are not shielded against a misconfiguration by changing directly these attributes
--
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
More information about the jboss-jira
mailing list