Chapter 4. Resource Adapter

Table of Contents

4.1. Security Management
4.1.1. Connection Authentication
4.2. Packaging
4.3. Deployment
4.3.1. Class Loading in SHARED Mode
4.3.2. Redeployment
4.4. Registering Resource Adapters as Resources
4.4.1. How to use WebAdmin

This chapter describes JEUS's security management function, and explains how to add the jeus-connector-dd.xml file to a resource adapter, and what you need to know for deployment.

Note

For information about packaging a resource adapter, refer to the section "20. Packaging Requirements" of the JCA standard 1.6.

This section describes JEUS's features provided for authentication and authority check of resource adapter.

As stated in the JCA standard, based on the description in ejb-jar.xml and web.xml files, you can determine who is going to authenticate a connection.

<resource-ref>
    <res-ref-name>jca/pool</res-ref-name>
    <res-type>javax.resource.cci.ConnectionFactory</res-type>
    <res-sharing-scope>Unshareable</res-sharing-scope>
    <res-auth>Container</res-auth>
</resource-ref>

In order to deploy a resource adapter to JEUS, a jeus-connector-dd.xml file should be created as a DD (Deployment Descriptor) in addition to the ra.xml file. In the file, you should specify the following:

After configuring these items, locate the jeus-connector-dd.xml file in the META-INF directory of the rar file.

xxx.rar/META-INF

A resource adapter can be deployed as either of the following two modules.

A resource adapter module is considered as a driver shared and used by all the applications rather than as an independent application. JEUS enables a resource adapter module to be registered with a domain as a connector resource.

Registering a resource adapter module with a domain as a connector resource is done through the WebAdmin. The configuration information of the resource adapter registered with the domain is similar to that of the jeus-connector-dd.xml file of the resource adapter module. The resource adapter is deployed as follows.

The resource adapter is deployed in the following configuration priority order.

  1. WebAdmin configuration

    This has higher priority than jeus-connector-dd.xml configuration. If this configuration exists, the resource adapters can be used as connector resources in the domain after deployment.

  2. jeus-connector-dd.xml configuration

    The configuration is applied when there is no resource adapter configuration through the WebAdmin. The Resource adapter will only perform its basic role as a module.

The following describes a process of registering resource adapters with a domain as connector resources through WebAdmin.

  1. Choose [Resources] > [External Source] from the left menu in WebAdmin and External Source will show on the screen. Click [LocK & Edit] at the bottom of the menu and then click [Add] under the list of Connectors. Connector resources configuration screen will appear.

  2. Connector resource configuration consists of Resource Adapter Module Id, Worker Pool configuration, and Connection Pool configuration. First, enter the 'Resource Adapter Module Id' which is going to be registered as the connector resource, if necessary adjust the Worker Pool configuration, then click [OK].

  3. If connection pool configuration is necessary, click the ID of the resource adapter that was just added as the connector resource.

  4. Connector resource configuration screen will reappear. Click [Add] under the Connection Pool section to add a Connection Pool configuration.

  5. Input the necessary Connection Pool settings and then click [OK].

  6. Click [Apply Changes] in order to confirm the final registration of the connector resource with the domain.

  7. Once the information registered on the server is applied, a message will be shown on the screen as follows.

    Although the messages indicate that the registry of a connector resource is complete, the registry are not applied dynamically. In order to use the registered connector resources, restart the server and redeploy the resource adapter module.