[
https://issues.jboss.org/browse/AS7-1738?page=com.atlassian.jira.plugin.s...
]
Alexey Loubyansky commented on AS7-1738:
----------------------------------------
* the console does not say its running in the domain mode
The prompt does: [domain@rhusar:9999 /]
* claims that the --profile argument is optional even though its indeed required
It doesn't claim that. It says it is allowed and required only in the domain mode. If
you try to execute the command w/o it, you'll get an error.
* does not say that it is not the master domain controller and refuses all changes
anyway
Yes, that's the issue.
CLI usability: unclear that the CLI is managing a domain not a host
-------------------------------------------------------------------
Key: AS7-1738
URL:
https://issues.jboss.org/browse/AS7-1738
Project: Application Server 7
Issue Type: Bug
Components: CLI
Affects Versions: 7.0.0.Final, 7.0.1.Final
Reporter: Radoslav Husar
Assignee: Alexey Loubyansky
Priority: Minor
Looks to me that the CLI is behaving differently if you are running in a domain mode or
in a stadnalone mode managing just a host. However it is not really clear from the CLI
help messages.
In the following log
* the console does not say its running in the domain mode
* claims that the --profile argument is optional even though its indeed required
* does not say that it is not the master domain controller and refuses all changes
anyway
{code}
[domain@rhusar:9999 /] add-jms-queue --help
Synopsis: add-jms-queue [--profile=profile_name] --name=queue_name
[--entries=entry(,entry)*] [--selector=selector_name] [--durable=(true|false)]
Description: creates a JMS queue
Arguments:
profile - is allowed and required only in the domain mode, specifies the
profile
in which the JMS resource should be created.
name - the name of the queue.
entries - an optional comma-separated list of JNDI names the queue should be
bound under.
If not present, the name will be used as the JNDI name.
selector - optional selector.
durable - optional, specifies whether the queue should be durable or not (the
default is true).
[domain@rhusar:9999 /] add-jms-queue --profile=ha --name=rQ
Operation add for address [
("profile" => "ha"),
("subsystem" => "messaging"),
("jms-queue" => "rQ")
] can only handled by the master Domain Controller; this host is not the master Domain
Controller
[domain@rhusar:9999 /] add-jms-queue --name=rQ
--profile argument value is missing.
[domain@rhusar:9999 /] quit
Closed connection to rhusar:9999
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira