Como testar datasource via jboss-cli.

  1. Conectando na console CLI.

    cd $JBOSS_HOME/bin
    ./jboss-cli.sh --connect --controller=IP:9999 --user=--password=

  2. Testando datasource.

    /subsystem=datasources/data-source=:test-connection-in-pool

Ex:

[standalone@127.0.0.1:9999 /] /subsystem=datasources/data-source=EXAMPLE_DS:test-connection-in-pool
{
"outcome" => "success",
"result" => [true]
}
Show Comments