

CA Adapter Windows Installation Guide › Deploying and Configuring State Manager › Creating a JNDI Connection › IBM WebSphere
IBM WebSphere
To create a JNDI connection in IBM WebSphere:
- Log in to WebSphere Administration Console.
- Click Resources and expand the JDBC node.
- Click JDBC Providers.
The JDBC Providers page opens.
- In the Preferences section, click New.
The Create a new JDBC Provider page opens.
- Perform the following steps to create a JDBC provider:
Note: Refer to http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.iseries.doc/info/iseries/ae/tdat_ccrtprov.html for more information on JDBC providers.
- If you are using MS SQL Server or Oracle, perform the following steps:
- Specify the Database Type and Provider Type.
- Select Connection pool data source from the Implementation Type drop-down list.
- If you are using MySQL, perform the following steps:
- Enter a Name for the JDBC provider. You can also enter a Description for the JDBC provider.
- Click Next.
The Enter database class path information screen opens.
- Enter the absolute path for the JAR file.
- Click Next.
The Summary screen opens.
- After reviewing the summary of the information that you have entered, click Finish.
- Set the CLASSPATH for the JDBC provider that you created in Step 5.
- Click Resources and expand the JDBC node.
- Click JDBC Providers.
The JDBC Providers page opens.
- Click the JDBC provider that you created in Step 5.
- Set the Class Path for the JDBC JAR.
- Click Apply to save the changes.
- Create a Data Source, as follows:
- Go to Resources, and then click JDBC.
- Under JDBC, open Data Sources and click New. Perform the following steps to create a data source:
- Specify the Data source name.
- Specify the JNDI name.
Note: The value you enter in the JNDI name field must exactly match the "Primary JNDI Name" that you have configured in the AFM wizard.
- Click Next.
- Select an existing JDBC provider created in Step 3.
- Click Next.
The Enter database specific properties for the data source screen opens.
- Depending on the database, enter the following information:
- For MS SQL Server:
Specify the Database name, Port number, and Server name.
- For Oracle:
Specify the Value for JDBC URL. This URL would be of the following type:
jdbc:oracle:thin:@server:port_number:sid
- Select the Data store helper class name. For MySQL, ensure that the data store helper class name is com.ibm.websphere.rsadapter.GenericDataStoreHelper.
- Click Next.
The Setup Security aliases screen opens.
- Click Next to view the Summary screen, and then click Finish.
- Click the data source created in Step 7.
- If you are using MS SQL Server or Oracle, perform the following steps:
- In the Related Items section, click JAAS - J2C authentication data.
- Click New to create a new credential.
- Enter login credentials that are used to connect to the database and save the credential.
- Click Apply, and then click OK to save the changes made.
- Click Data Sources and select the data source that you created in Step 7.
- Under Security Settings -> Component-managed authentication alias, select the JAAS credential that you created in earlier and click Apply, and then OK.
- If you are using MySQL, perform the following steps:
- Click the Custom Properties link.
A screen showing the existing custom properties opens.
- Click New, and enter values for the following properties:
- Log in again to WebSphere Administration Console.
- Go to Resources, and then click JDBC.
- Click Data Sources and select the check box for the data source you created in Step 7.
- Click Test connection to verify that you have specified the connection correctly.
Note: This test only checks the connection to the database server, not necessarily the correct definition of the data source. On MySQL, if you find that the connection test fails even though you have specified the correct connection parameters, restart the application server and then retry the connection test.
Copyright © 2013 CA.
All rights reserved.
 
|
|