Why and when to perform this task
After you create a JDBC provider, you must create a data source to access the backend data store. Follow these steps to create either a new Version 5.0 data source or a Version 4.0 data source.Steps for this task
For your Version 5.0 data source:
If your resource authentication (res-auth) is set to Application, set the alias in the Component-managed Authentication Alias. If your res-auth is set to Container, set the Container-managed Authentication Alias. If your database does not support a user ID and password on a connection (for example, Cloudscape), then do not specify the alias in either one of these entries.
Because defining a user ID and password in the Custom Properties page is not always desirable (your password can be seen by anyone who accesses the resources.xml file), you can define the user ID and password as an alias. To define a new alias from the J2C Authentication Data Entries choice, follow these steps:
Note: You must provide an authentication alias for an XA data source (a user ID and a password for a Version 4 XA data source) to use when the XA transaction recovery manager requires a connection to the database. Otherwise, the transaction recovery service does not work and the database issues an exception.
For more information, see Data source settings, Data source (Version 4) settings., and Minimum required properties for vendor-specific data sourcesThe Related Items section contains the J2C Authentication Data Entries choice. Here, you can specify a list of user IDs and passwords for use by Java 2 Connector (J2C) security.