Use a remote DB2 database for UDDI

 

Overview

The WebSphere Application Server UDDI Registry can use a remote UDDI DB2 database installed on a DB2 system running on another machine.

It is possible to connect a DB2 system on one host to use a DB2 database on a remote host. Refer to the DB2 Information Center which supplies information on using the Client Configuration Assistant to achieve this. For the documentation below, the term 'local system' refers to the system running the WebSphere Application Server on which the UDDI Registry is installed and the term 'remote system' refers to another system on which the UDDI DB2 database exists. The UDDI DB2 database is created by running SetupDB2UDDI.jar on the remote system as described within "Setting up the UDDI Registry to use DB2 within a deployment manager cell" or "Setting up the UDDI Registry to use DB2 in a single appserver" and referred to in the last task in the list below. Refer to the DB2 specific version documentation for details.

Here is an example for DB2 V8:

  1. On the remote host, define the UDDI Registry by entering: java -jar SetupDB2UDDI.jar and following the prompts. The DB2userid and DB2password specified here will be the ones that are used when setupuddi.jacl (or appserversetupuddi.jacl) are run further in these instructions.

  2. Use DB2's Client Configuration Assistant. When you receive the message "Welcome to the Assistant - would you like to add a database now?" - select "yes"

  3. On the next screen, click the radio button to "Manually configure a connection to a database" and click on "Next".

  4. Click TCP/IP on the next screen, and select "The database physically resides on a host or OS/400 system. Click the radio button "Connect directly to the server" and then click "Next".

  5. The next screen defines the TCP/IP host name and Port Number of the remote system. For the Port Number the use of 50000 is recommended. You are also asked for the service name (for example db2c_db2inst1). Click "Next" when completed.

  6. The next screen identifies the name of the UDDI database on the remote system and the alias name to be used on the local system. This alias can be anything suitable, including UDDI20 providing there is not a local database of that name.

  7. The next screen shows "Register this database for ODBC". Leave this as is and click "Next".

  8. The next screen asks for the Operting System (for example AIX or Windows) and the Remote Instance Name (for example db2inst1). Click "Next" when completed.

  9. It is not necessary to go any further on this assistant. Click on "Finish" to define the remote database to DB2.

  10. Another windows displays stating "Test the Connection". Enter the db2userid and db2password for the remote instance in the appropriate fields and click "Test Connection".

  11. Click "Cancel" and the alias is now correctly set up.

Note: If the user is running a DB2 Client only, and has not got the DB2 Client Configuration Assistant available there are two options available:

Run the setupuddi.jacl (or appserversetupuddi.jacl) command on the local system as described in "Setting up the UDDI Registry to use DB2 within a deployment manager cell" or "Setting up the UDDI Registry to use DB2 in a single appserver", ensuring that you specify the alias on the local system as the UDDI database parameter, and the DB2 userid and password on the remote host as the userid and password parameters.

IP Addressing

If you are experiencing problems accessing the remote host, one of the possible causes might be IP addressing. Refer to the "UDDI Troubleshooting Tips" section for a possible solution.

The remote database is now ready for use. Continue with your next task.


Related tasks
Enabling Universal Description, Discovery and Integration (UDDI)