Creating a JNDI adapter reference for an application
Draft comment:
This topic was viewed 9 times since its publication
When a stand-alone adapter is deployed to a cluster, the application must provide a JNDI
reference to the related adapter binding configuration of the stand-alone adapter to use the JNDI
resources.
This topic was viewed 9 times since its publication
Before you begin
Because a stand-alone adapter must be set up to use the Java™ Naming and Directory Interface (JNDI) defined adapter configuration, first install the stand-alone adapter to a cluster where you want to deploy your applications with adapter bindings that use the JNDI resources.
About this task
Complete either of the following steps depending on whether you are a developer or administrator:
- If you are a developer, complete these steps at development time when you create an adapter
import or export:
- Set the following value in the configuration properties that are specified on the Specify the Service Generation and Deployment Properties window. This value enables the stand-alone adapter when you create an import or export. In the Deploy connector project property list, select On server for use by multiple applications.
- In the same window, check that the following value is set to use a JNDI resource lookup. From the Connection properties list, select Use JNDI lookup name configured on server.
- In the JNDI lookup name property field, specify the JNDI name that you want to use. Use this same JNDI name when you create the related JNDI resource in the administrative console.
- If you are an administrator, take these steps before application deployment:
- In the Integrated Solutions console, go to the resource adapters section and select .
- Change the scope to the application cluster and click the stand-alone adapter related to your application's import or export binding.
- For inbound adapter export bindings, create an activation specification. For outbound adapter
import bindings, create a connection factory.
- For inbound adapter export bindings, select J2C activation
specifications. Then, select New to create an activation
specification based on the selected adapter. Add values for the following properties:
- Name: The display name
- JNDI name: The JNDI name must match the name that is used for your application export binding.
- Message listener type: The type of listener
- Security settings: The settings for your security
- For outbound adapter import bindings, select J2C connection factories.
Then, select New to create a connection factory based on the selected
adapter. Add values for the following properties:
- Name: The display name
- JNDI name: The JNDI name must match the name that is used for your application import binding.
- Connection Factory interface: The managed connection factory properties
- Security settings: The settings for your security
- Container-managed authentication: The authentication mechanism
- For inbound adapter export bindings, select J2C activation
specifications. Then, select New to create an activation
specification based on the selected adapter. Add values for the following properties:
Results
A JNDI activation specification or connection factory is available for use with your adapter bindings.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15