Create the SQL Server data source
Before you begin
Procedure
- Open the WebSphere Administrative Console if it is not already open.
-
If you do not yet have a J2C (Java 2 Connector) authentication alias, create a new one.
- Click Global J2C authentication alias.
- Click New.
-
Enter the following.
Parameter
Value
AliasA string specifying the alias name, for example
pcAlias.User IDA string specifying the user name.
PasswordA string specifying the password.
- Click OK.
- Click Save to apply your changes to the master configuration.
- Choose .
- Set the Scope to Cell.
-
Select the JDBC provider that you created for SQL Server.
WebSphere displays the Configuration tab.
-
Select Data Sources in the Additional Properties section.
WebSphere displays the Data sources screen.
-
Click New to create a new data source and enter a value for JNDI name.
For example, enter something such as
jdbc/pcDataSource.The JNDI name must match the value of the
datasource-nameattribute of the<jndi-connection-pool>element in the database-config.xml file. See Configure PolicyCenter to use a direct JNDI data source. - Click Next.
- Enter the Database name.
- If using a different port to connect to the database than the default of 1433, change the Port number value.
- Enter the Server name for the server hosting SQL Server.
- Uncheck the box for Use this data source in container managed persistence (CMP).
- Click Next.
- Select an authentication alias for Component-managed authentication alias.
- Select an authentication alias for Container-managed authentication alias.
- Click Next.
-
Review the information on the Summary screen. Do one of the following:
- Click Previous if you need to make changes.
- Otherwise, click Finish.
- Click Save to apply your changes to the master configuration.
What to do next
After completing this procedure, proceed to Configure the SQL Server data source properties.
