Sun GlassFish Enterprise Server v2.1.1 Administration Guide

Configuring the Generic Resource Adapter for JMS

Enterprise Server's administration tools can be used to deploy and configure the generic resource adapter for JMS. This section explains how to configure Generic Resource Adapter for JMS with Enterprise Server.

Overall, the Resource Adapter can be configured to indicate whether the JMS provider supports XA or not. It is also possible to indicate what mode of integration is possible with the JMS provider. Two modes of integration are supported by the resource adapter. The first one uses JNDI as the means of integration. In this case, administered objects are set up in the JMS provider's JNDI tree and will be looked up for use by the generic resource adapter. If that mode is not suitable for integration, it is also possible to use the Java reflection of JMS administered object javabean classes as the mode of integration.

You can use the Admin Console or the command-line to configure the resource adapter. This is not different from configuring any other resource adapter.

Configuring the Generic Resource Adapter

Prior to deploying the resource adapter, JMS client libraries should be made available to the Enterprise Server. For some JMS providers, client libraries may also include native libraries. In such cases, these native libraries should also be made available to the JVM(s).

  1. Deploy the generic resource adapter the same way you would deploy a connector module.

  2. Create a connector connection pool.

  3. Create a connector resource.

  4. Create an administered object resource.

  5. Make the following changes to the security policy in the Enterprise Server:

    • Modify sjsas_home/domains/domain1/config/server.policy to add java.util.logging.LoggingPermission "control"

    • Modify sjsas_home/lib/appclient/client.policy to add permission " ^ \"^\"","read":