-
1. Re: Is it possible to flush connection pool through CLI in jboss, instead of doing of it from web console? How?
welle Nov 22, 2013 6:44 AM (in response to ravipatil080)The following CLI command should work: /subsystem=datasources/data-source=ExampleDS:flush-all-connection-in-pool
-
2. Re: Is it possible to flush connection pool through CLI in jboss, instead of doing of it from web console? How?
ravipatil080 Nov 22, 2013 7:04 AM (in response to welle)I'm not outcome as success, and also I'm getting flush-all-connection-in-pool "is not a valid operation name"
Below try I gave:
[standalone@localhost:9999 /] /subsystem=datasources/data-source=java:jboss/datasources/MYDS:flush-idle-connection-in-pool
{
"outcome" => "failed",
"failure-description" => "JBAS014807: Management resource '[
(\"subsystem\" => \"datasources\"),
(\"data-source\" => "java:jboss/datasources/MYDS")
]' not found",
"rolled-back" => true
}
[standalone@localhost:9999 /] /subsystem=datasources/data-source=java:jboss/datasources/MYDS:flush-idle-connection-in-pool
'jboss/datasources/MYDS:flush-idle-connection-in-pool' is not a valid operation name.
-
3. Re: Is it possible to flush connection pool through CLI in jboss, instead of doing of it from web console? How?
wdfink Nov 22, 2013 7:49 AM (in response to ravipatil080)1 of 1 people found this helpfulYou should not use the JNDI name, I suppose your DS name is MYDS in this case.
You might use the TAB-completion to show the possibilities.
-
4. Re: Is it possible to flush connection pool through CLI in jboss, instead of doing of it from web console? How?
ravipatil080 Nov 22, 2013 8:16 AM (in response to wdfink)I'm using xa datasources, following command does work:
[standalone@localhost:9999 /] xa-data-source flush-idle-connection-in-pool --name=MYDS
Thanks,
Ravi
-
5. Re: Is it possible to flush connection pool through CLI in jboss, instead of doing of it from web console? How?
ssilvert Nov 22, 2013 8:48 AM (in response to ravipatil080)Ravi Patil wrote:
Hi All,
I want to flush the connection pool through CLI, not through the web console of jboss. Is there a way to do that.?
Thanks,
Ravi
BTW, the answer to this is always "yes". Web Console provides a subset of the functionality available through CLI. Both Web Console and CLI issue the same DMR operations at the end of the day.
Stan