Why and when to perform this task
In this article the term thread identity
refers to the J2EE Identity (such as the RunAs Identity), as opposed to the
OS thread identity. Refer to Synchronizing
a Java thread identity and an operating system thread identity and Understanding Connection Manager
RunAs Identity Enabled and operating system security for more information.
Perform the following steps to enable the thread identity function for the connection factories or JDBC provider data sources created with the supported JCA resource adapters and JDBC providers:
Steps for this task
If the adapter or provider is not listed, then thread identity support is NOTALLOWED, by default.
When the connector is configured locally, the resource adapter determines the level of thread identity support as ALLOWED. If thread identity support is allowed and you specify Container-managed authentication alias as NULL, the connector uses the current thread identity as the owner for each connection that is created.
When the resource adapter, WebSphere MQ JMS Provider, or JDBC provider determines that the level of thread identity support is REQUIRED, any specification for the Container-managed authentication alias is ignored. Thread identity support in this case always applies.
If
you want the thread identity associated with a connection to be the identity,
then you must enable global security. In the case of connectors that support
the thread identity function and use operating system thread security, you
must .
Note: With Bean-Managed Persistence (BMP) beans, if you obtain a connection under the ejbLoad() or ejbStore() functions during pre-invoke or post-invoke method processing, your thread identity support does not become the RunAs identity because the container during this processing is running under server identity. With BMP beans, instead of using thread identity, specify a Container-managed alias to associate the user with the connection.
To specify the custom property, complete the following steps:
Note: This custom property name is case sensitive.