Assemble the application: Configure the application client
Once the EAR file is assembled, you need to configure the application client in order to correctly deploy the EAR file in a WebSphere Application Server instance. The WebSphere Application Client Resource Configuration Tool and the WebSphere Application Assembly Tool are used in this step.
Start the Application Client Resource Configuration Tool. On a Windows command line, specify install_root/bin/clientConfig, where install_root is the directory structure of the WebSphere Application Server on your workstation.
Open MDBSamples.ear, located in the mdbsamp folder.
Add the TopicConnectionFactory information to the EAR file.
- Expand PSSampleClient.jar.
- Expand JMS Providers.
- Expand WebSphere JMS Provider.
- Right-click WAS Topic Connection Factories, and click New.
- Specify the following information:
- In the Name field, specify ConnectionFactory1.
- In the JNDI field, specify jms/ConnectionFactory1.
- In the Node field, specify the name of the node on which you are going to install the sample.
- In the Server field, specify the name of the application server on which you are going to install the sample.
Note: If the server you are going to run the sample on is federated into a Network Deployment, specify jmsserver as the name of your server.
Select the File -> Save menu item to save your changes to MDBSamples.ear.
Close the Application Client Resource Configuration Tool.
Open MDBSamples.ear in the application assembly tool.
- Start the application assembly tool. On your workstation, select Start --> Programs -> IBM Websphere -> Application Server v5.0 -> Application Assembly Tool.
Note: If you already have the application assembly tool open, select the File -> Open menu item. Select MDBSamples.ear in the mdbsamp folder, and click Open.
Generate code for deployment.
- Select the File -> Generate code for deployment... menu item.
- Accept defaults for all values except database type.
- In the Database Type field, select DB2UDBISERIES from the drop-down list.
- Click Generate now.
The tool generates a file called Deployed_MDBSamples.ear, which you use in the next steps.
Once the deployed code is generated, click Close.