Sun GlassFish Enterprise Server v2.1.1 Administration Guide

Managing Connector Resources

ProcedureTo Create a Connector Resource

A connector resource (data source) provides applications with a connection to an EIS.

Before You Begin

Before creating a connector resource, first create a connector connection pool.

  1. In the tree component, expand the Resources node and then the Connectors node.

  2. Expand the Connector Resources node.

  3. On the Connector Resources page, click New.

  4. On the Create Connector Resources page, specify the resource’s settings:

    1. In the JNDI Name field, type a unique name, for example: eis/myERP.

    2. From the Pool Name combo box, choose the connection pool to which the new connector resource belongs.

    3. To change the resource to be unavailable, deselect the Status checkbox.

      By default, the resource is available (enabled) when it is created.

    4. Do one of the following:

      • If you are using the cluster profile, you will see the Targets section of the page. in the Targets section of the page, select the domain, cluster, or server instances where the connector resource will reside, from the Available field and click Add. If you do not want to deploy the connector resource to one of the domains, clusters, or server instances listed in the Selected field, select it from the field and click Remove.

      • If you are running a domain with developer profile, skip to step 5.

  5. Click OK.

Equivalent asadmin command

create-connector-resource

ProcedureTo Edit a Connector Resource

  1. In the tree component, expand the Resources node and then the Connectors node.

  2. Expand the Connector Resources node.

  3. Select the node for the connector resource that you want to edit. On the Edit Connector Resources page, you can change the settings of this connection.

  4. Do one of the following:

    • If you are using the cluster profile or enterprise profile, you will see the Targets tabbed pane. On the Targets tabbed pane, you can enable or disable the connector resource on individual targets. You can change the targets on which the connector resource is deployed by clicking Manage Targets.

    • If you are using developer profile, skip to next step.

  5. Click Save to apply the edits.

ProcedureTo Delete a Connector Resource

  1. In the tree component, expand the Resources node and then the Connectors node.

  2. Select the Connector Resources node.

  3. On the Connector Resources page, select the checkbox for the resource to be deleted.

  4. Click Delete.

Equivalent asadmin command

delete-connector-resource

ProcedureTo Configure the Connector Service

Use the Connector Service screen to configure the connector container for all resource adapters deployed to this cluster or server instance.

  1. Select Configurations from the tree.

  2. If you are using the cluster profile, select the instance to configure:

    • To configure a particular instance, select the instance’s config node. For example, for the default instance, server, select the server-config node.

    • To configure the default settings for future instances that use a copy of default-config, select the default-config node.

  3. Select the Connector Service node.

  4. Specify the shutdown timeout in seconds in the Shutdown Timeout field.

    Enter an integer representing the number of seconds that the application server waits to allow the ResourceAdapter.stop method of the connector module’s instance to complete. Resource adapters that take longer than the specified shutdown timeout are ignored by the application server and the shutdown procedure continues. The default shutdown timeout is 30 seconds. Click Load Defaults to select the default shutdown timeout for the resource adapters deployed to this cluster or server instance.