Use the Deploy JAR Files wizard to deploy
a JAR file to a database server using the information that is stored
in a data development project. You can deploy JAR files to the same
database server that is associated with the project, or you can deploy
JAR files to a database server that is the same type and version as
the database server that is associated with the project.
Before you begin
Before you deploy a JAR file from a data development project,
you must import JAR file information to a data development project
that is associated with a DB2® for z/OS® Version 9 server.
About this task
Before you deploy a JAR file, you should stop any routines
that depend on the JAR file. You can use the db2 stop procedure command
to stop the routines.
Procedure
To deploy JAR files to a database from a data development
project:
- Open a data development project in the Data Project Explorer.
- Right-click the JAR folder or a
single JAR file in the JAR folder and select Deploy. A wizard opens.
- Complete the steps of the wizard. You can specify
options for error or duplicate handling and you can customize the Java path if the target server supports Java path settings.
- Click Finish.
Results
The deploy process begins, and you can view the progress and
messages in the SQL Results view. After the JAR file is deployed,
you can refresh the
JAR folder under the appropriate
database connection in the Data Source Explorer view to verify that
the JAR file was successfully added to the server.