Sun Java System Application Server Platform Edition 9 Administration Guide

ProcedureTo Configure the Generic Resource Adapter

Prior to deploying the resource adapter, JMS client libraries should be made available to the application 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 application server JVM(s).

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

    For steps to do this, refer to the Admin Console Online Help. During deployment, make sure that you specify install-dir/lib/addons/resourceadapters/genericjmsra/genericra.rar as the location of the generic resource adapter. Also, you must specify the properties explained in the section Resource Adapter Properties.

  2. Create a connector connection pool.

    For steps to do this, refer to the Admin Console Online help. In the New Connector Connection Pool page, from the Resource Adapter combo box, select genericra. Also, in the Connection Definition combo box, select javax.jms.QueueConnectionFactory. Additionally, specify the properties explained in the section ManagedConnectionFactory Properties.

  3. Create a connector resource.

    For detailed procedure to do this, you can refer the Admin Console Online Help. In the New Connector Resource page, select the pool you created in the previous step.

  4. Create an administered object resource.

    For detailed procedure to do this, you can refer the Admin Console Online Help. In the New Admin Object Resource page, select genericra as the Resource Adapter and javax.jms.Queue as the Resource Type. Click Next and in the second page, click Add Property. In the Additional Properties table, specify a new property called DestinationProperties with the value Name\\=clientQueue. For information on more properties, see the section Administered Object Resource Properties.

  5. Make the following changes to the security policy in Sun Java System Application Server.

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

    2. Modify sjsas_home/lib/appclient/client.policy to add permission javax.security.auth.PrivateCredentialPermission "javax.resource.spi.security.PasswordCredential * \"*\"","read";