[
https://issues.jboss.org/browse/WFLY-4314?page=com.atlassian.jira.plugin....
]
Brian Stansberry commented on WFLY-4314:
----------------------------------------
Does this work?
{code}
if (outcome == failed) of
/subsystem=resource-adapters/resource-adapter=activemq-ra:read-resource
/subsystem=resource-adapters/resource-adapter=activemq-ra:add(archive=activemq-ra.rar)
reload
end-if
{code}
No ":" before "reload".
The behavior you are looking for is not possible with a low level operation, i.e.
":reload". It is possible with the high level CLI command "reload".
A low-level operation that triggers a reload can support a blocking parameter if it is
targeted at a Host Controller. The blocking behavior is implemented in the HC process,
which isn't being reloaded. The blocking behavior can't be implemented in the
server process because the reload requires stopping all the services, including those that
would block. The high level CLI "reload" command does the blocking on the client
side.
Add blocking option to reload command for standalone server
-----------------------------------------------------------
Key: WFLY-4314
URL:
https://issues.jboss.org/browse/WFLY-4314
Project: WildFly
Issue Type: Enhancement
Components: Domain Management
Affects Versions: JBoss AS7 7.2.0.Final, 8.2.0.Final
Reporter: Tomas Rohovsky
Assignee: Brian Stansberry
reload command is non-blocking which causes problems in CLI scripts. Let's take this
as an example:
{code}
if (outcome == failed) of
/subsystem=resource-adapters/resource-adapter=activemq-ra:read-resource
/subsystem=resource-adapters/resource-adapter=activemq-ra:add(archive=activemq-ra.rar)
:reload
end-if
{code}
I use jboss-as-maven-plugin for its execution and sometimes I get: {Command execution
failed for command 'end-if'. if request failed:
java.util.concurrent.ExecutionException: Operation failed: Channel closed}
This functionality has already been asked in WFLY-208, but for some reason it was
implemented only for domain-related commands but not standalone-related (reload and
shutdown).
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)