This article is actually related to the other article titled ‘How to Display Database Driver List in Wildfly Java Application Server’ in this link. The following are steps taken in order to preview the detail of the database driver exist and it has been configured in Wildfly Java Application Server :
1. Certainly having the installed Wildfly Java Application Server. The reference for installation of Wildfly Java Application Server can be found in this link which is an article titled ‘Installing Wildfly Java Application Server’.
2. The Wildfly Java Application Server must be running. For starting the service of Wildfly Java Application Server, this link which is an article with the title of ‘How to Run Wildfly Java Application Server via Command Line’.
3. It have to be connected if the detail of the database driver list is going to be displayed. To connect to Wildfly Java Application Server, just visit this link where it can be used as a reference since it is actually an article titled ‘How to Connect to Wildfly Management Console via Command Line’.
4. Execute the command follow to display the detail of database driver list :
/subsystem=datasources:installed-drivers-list
Below is the actual command executed above with the output generated :
[standalone@localhost:9990 /] /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" => 4, "jdbc-compliant" => true }, { "driver-name" => "mysql-connector-java-8.0.11.jar", "deployment-name" => "mysql-connector-java-8.0.11.jar", "driver-module-name" => undefined, "module-slot" => undefined, "driver-datasource-class-name" => undefined, "driver-xa-datasource-class-name" => undefined, "driver-class-name" => "com.mysql.cj.jdbc.Driver", "driver-major-version" => 8, "driver-minor-version" => 0, "jdbc-compliant" => false } ] } [standalone@localhost:9990 /]
The above is the output of the command executed. It printed list of drivers where there are two drivers enlisted. That two drivers is the database driver for h2 Database driver and MySQL Database driver. It prints all the details related to the database driver include the file used as the driver, the driver class name and also the version of the driver itself.