31
{-appname PlantsByWebSphere -usedefaultbindings -node [node] -
deployejb
-deployejb.dbtype DB2UDB_V72 -server [server]}"
6.
where:
node
is the name of the node on which to install the sample
server
is the name of the server on which to install the sample
The Plants by WebSphere EAR file is now redeployed to the Application Server with DB2-
specific deployment code. Restart the Application Server and configure resources before
running the sample.
Configuring DB2 resources for the Application Server
Now that the PLANTSBY database exists and the EAR file is redeployed, you must
configure the database resources on the Application Server. For this step, you can either
execute the provide JACL script,
pbwconfigDB2.jacl
, or you can manually set up the
resources through the administrative console of the Application Server. Instructions for both
procedures are provided.
Configuring resources using the Java Command Language script
To automate the configuration of resources for DB2, run the Java Command Language
(JACL) script provided in the
plantsbyDB2.zip
file:
1. Locate the JACL file,
pbwConfigDB2.jacl
, in the
install
subdirectorytha was
created after unzipping the
plantsbyDB2.zip
file.
2. Enter the following at a command prompt:
wsadmin -conntype none -f pbwConfigDB2.jacl [node] [DB2 driver class
path] [DB2 ID] [DB2 pw]
where:
node
is the name of the node on which to install the sample
DB2 driver class path
is the location of the
db2java.zip
file, typicaly
DB2_install_root\SQLLIB\java12\db2java.zip
DB2 ID/pw
are the values for your DB2 user ID and password
Important: Enclose the DB2 driver class path in brackets and quotation marks.
For example,
{"C:\Program Files\SQLLIB\java12\db2java.zip"}
The JACL script creates and configures all the necessary resources using wsadmin scripting
commands. At this point, you are ready to run the Plants by WebSphere sample.
Comentarios a estos manuales