What is the syntax used for CLI to flush-all-connection-in-pool for executing from server group
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Issue
- The following works for a single server in the domain, is there a way to specify the server group?
/host=host1/server=node1/subsystem=datasources/data-source=OracleDS:flush-all-connection-in-pool
Resolution
No, currently there is no option to list the "flush" command from a server-group or a profile.
[domain@localhost:9999 /] data-source --help --commands --profile=full
add
disable
enable
read-resource
remove
eg. (out of the box)To read the description of a specific command execute 'data-source command_name --help --profile=full'.
Workaround.
$ cat flush.cli
/host=master/server=server-one/subsystem=datasources/data-source=ExampleDS:flush-all-connection-in-pool()
/host=master/server=server-two/subsystem=datasources/data-source=ExampleDS:flush-all-connection-in-pool()
$ $JBOSS_HOME/bin/jboss-cli.sh -c --file=flush.cli
{
"outcome" => "success",
"result" => undefined
}
{
"outcome" => "success",
"result" => undefined
}
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
