4.7.2 Installing the JDBC driver for Application Server
To install the JDBC driver for Application Server, copy the .jar file of the JDBC driver (provided by the database vendor) to the Application Server directory. In order to enable the JDBC driver for Application Server, restart the domain administration server (DAS) by using the restart-domain subcommand of the asadmin utility command, and Application Server by using the stop-servers and start-servers subcommands.
Prerequisites
-
The domain administration server (DAS) is running.
-
Application Server is running.
-
The database server (DBMS) is running.
Intended users
-
System engineers
Procedure
Copy the .jar file of the JDBC driver to the Application Server directory.
Use the .jar file (of the JDBC driver) that is provided by the database vendor. Copy the file to installation_directory_for_Application_Server/javaee/glassfish/domains/domain_name/lib.
To restart the DAS, run the restart-domain subcommand of the asadmin utility command.
asadmin restart-domain
When this command is run, the result is displayed as follows:
Command restart-domain executed successfully.
To stop Application Server run the stop-servers subcommand of the asadmin utility command.
asadmin stop-servers
When this command is run, the result is displayed as follows:
Command stop-servers executed successfully.
To start Application Server run the start-servers subcommand of the asadmin utility command.
asadmin start-servers
When this command is run, the result is displayed as follows:
Command start-servers executed successfully.
Postrequisites
-
Set a connection to the database server.