How to list installed driver details in JBoss EAP6 using CLI
Issue
- While running the following command in order to list the installed drivers in EAP6 in Domain Mode via CLI script we are getting the following exception:
[domain@localhost:9999 /] /profile=full/subsystem=datasources:installed-drivers-list
{
"outcome" => "failed",
"failure-description" => "JBAS010850: No handler for operation installed-drivers-list at address [
(\"profile\" => \"full\"),
(\"subsystem\" => \"datasources\")
]",
"rolled-back" => true
}
However in the Standalone mode the same command works fine as following:
[standalone@localhost:9999 /] /subsystem=datasources:installed-drivers-list
{
"outcome" => "success",
"result" => [{
"driver-name" => "h2",
"deployment-name" => undefined,
"driver-module-name" => "com.h2database.h2",
"module-slot" => "main",
"driver-datasource-class-name" => "",
"driver-xa-datasource-class-name" => "org.h2.jdbcx.JdbcDataSource",
"driver-class-name" => "org.h2.Driver",
"driver-major-version" => 1,
"driver-minor-version" => 3,
"jdbc-compliant" => true
}]
}
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.