Configuring WebSphere Application Server for DB2 manually
IBM Worklight V5.0.5. automatically configures your databases. However, if you are using an older version of IBM Worklight, or if you are experiencing problems with the automatic configuration process for the WebSphere Application Server, you must manually set up and configure your DB2 database and then the WebSphere Application Server for DB2. Complete the DB2 Database Setup procedure before continuing.
- Set up the JDBC provider:
- In the WebSphere Application Server console, click Resources > JDBC > JDBC Providers > New.
- Set the scope of the JDBC connection to Node level.
- Set Database type to DB2.
- Set Provider type to DB2 Universal JDBC Driver Provider.
- Set Implementation Type to Connection pool data source.
- Set Name to DB2 Universal JDBC Driver Provider.
- Click Next.
- Set the directory location for DB2 to DB2_HOME/java, where DB2_HOME is the directory where DB2 is installed.
- Do not set Native library path.
- Click Next.
- Click Finish.
- The JDBC provider is created.
- Click Save.
- Create a data source for the IBM Worklight database:
- Select the new JDBC provider and click Data Source.
- Click New to create a data source.
- Set the Data source name to Worklight Database.
- Set JNDI Name to jdbc/WorklightDS.
- Click Next.
- Enter properties for the datasource: For example, Driver type: 4, Database Name: WRKLGHT, Server name: localhost, Port number: 50000 (default). Leave “Use this data source in (CMP)” checked;
- Click Next.
- Create JAAS-J2C authentication data, specifying the DB2 user name and password for Container Connection.
- Select the component-managed authentication alias that you created.
- Click Next and Finish.
- Click Save.
- Create a data source for the IBM Worklight reports database:
- Select the new JDBC provider and click Data Source.
- Click New to create a data source.
- Set the Data source name to Worklight Reports Database.
- Set JNDI Name to jdbc/WorklightReportsDS.
- Click Next.
- Select the component-managed authentication alias that you created.
- Click Next and Finish.
- Test the data source connection by selecting each Data Source and clicking Test Connection.
Parent topic Troubleshooting