You can choose one of the following methods as a resource sign-on method:
- Container-managed sign-on
In this method, Application Server is used to automatically sign-on to the resource. In this method, if you set up the user name and password for each resource adapter, Application Server automatically transmits the user name and password to the resource when the connection is obtained.
To use the container-managed sign-on, specify Container in the <res-auth> tag within the <resource-ref> tag of the DD for Enterprise Beans and servlets.
- Component-managed sign-on
In this method, the user program is used to sign-on to the resource. To use this method, the user name and password used when the connection is obtained is specified in the user program.
- Example: For DB Connector
- When you invoke getConnection of the DataSource class, specify the user name and password in the argument.
To use the component-managed sign-on, specify Application in the <res-auth> tag within the <resource-ref> tag of the DD for Enterprise Beans and servlets.
If connection pooling is used, we recommend that you use the container-managed sign-on that can efficiently re-use connections.
Note that when you use Setup Wizard to set up the system, application authentication cannot be used because true is specified in ejbserver.connectionpool.applicationAuthentication.disabled.