Oracle GlassFish Server 3.0.1 Administration Guide

Administering the Resource Adapter Configuration

The following topics are addressed here:

ProcedureTo Create Configuration Information for a Resource Adapter

Use the create-resource-adapter-config subcommand in remote mode to create configuration information for a resource adapter, also known as a connector module. You can run the subcommand before deploying a resource adapter, so that the configuration information is available at the time of deployment. The resource adapter configuration can also be created after the resource adapter is deployed. In this situation, the resource adapter is restarted with the new configuration.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. Create configuration information by using the create-resource-adapter-config(1) subcommand.

    Information about properties for the subcommand is included in this help page.


Example 15–7 Creating a Resource Adapter Configuration

This example creates the configuration for resource adapter ra1.


asadmin> create-resource-adapter-config --property foo=bar 
--threadpoolid mycustomerthreadpool ra1
Command create-resource-adapter-config executed successfully

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help create-resource-adapter-config at the command line.

ProcedureTo List Resource Adapter Configurations

Use the list-resource-adapter-configs subcommand in remote mode to list the configuration information contained in the domain configuration file (domain.xml) for the specified resource adapter (connector module).

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List the configurations for a resource adapter by using the list-resource-adapter-configs(1) subcommand.


Example 15–8 Listing Configurations for a Resource Adapter

This example lists all the resource adapter configurations.


asadmin> list-resource-adapter-configs
ra1
ra2
Command list-resource-adapter-configs executed successfully

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help list-resource-adapter-configs at the command line.

ProcedureTo Update a Resource Adapter Configuration

Use the get and set subcommands to view and change the values of the resource adapter configuration properties.

  1. List the configurations for a resource adapter by using the list-resource-adapter-configs(1) subcommand.

  2. View the properties of the connector resource by using the get(1) subcommand.

    For example:


    asadmin> get domain.resources.resource-adapter-config.ra1.*
    
  3. Set the property of the connector resource by using the set(1) subcommand.

    For example:


    asadmin> set domain.resources.resource-adapter-config.ra1.raSpecificProperty=value
    

ProcedureTo Delete a Resource Adapter Configuration

Use the delete-resource-adapter-config subcommand in remote mode to delete the configuration information contained in the domain configuration file (domain.xml) for a specified resource adapter (connector module).

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List the configurations for a resource adapter by using the list-resource-adapter-configs(1) subcommand.

  3. Delete the configuration for a resource adapter by using the delete-resource-adapter-config(1) subcommand.


Example 15–9 Deleting a Resource Adapter Configuration

This example deletes the configuration for resource adapter ra1.


asadmin> delete-resource-adapter-config ra1
Command delete-resource-adapter-config executed successfully

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help delete-resource-adapter-config at the command line.