This content has been marked as final.
Show 2 replies
-
1. Re: Flushing connection pool?
jaysensharma Feb 2, 2016 7:58 AM (in response to nickarls)Pardon me if i misunderstood your query. Following are the options which can be used to flush the connections pool manually:
/subsystem=datasources/data-source=ExampleDS/:flush-all-connection-in-pool (OR) /subsystem=datasources/data-source=ExampleDS/:flush-gracefully-connection-in-pool (OR) /subsystem=datasources/data-source=ExampleDS/:flush-idle-connection-in-pool (OR) /subsystem=datasources/data-source=ExampleDS/:flush-invalid-connection-in-pool
Regarding your query on " do I still have to go through the admin port?"
In WildFly if we are using CLI then it is going to use http-remoting protocol with management port: 9990 (by default) as mentioned in the $WILDFLY_HOME/bin/jboss-cli.xml
<!-- The default controller to connect to when 'connect' command is executed w/o arguments --> <default-controller> <protocol>http-remoting</protocol> <host>localhost</host> <port>9990</port> </default-controller>
Regards
Jay SenSharma
-
2. Re: Flushing connection pool?
nickarls Feb 3, 2016 2:28 AM (in response to jaysensharma)Yes, that's about the way I currently do it, I was just wondering about the connection mechanism, is there nowadays some magical helper class that could do
Server.runCommand("any command") and it would connect to the server through direct method calls or do the connect automagically behind the scenes...