Sun Java System Web Server 7.0 Update 6 Administrator's Guide

Registering Custom Resources

You can register a custom resource with the instance by performing this task.

ProcedureTo Add a Custom Resource

  1. Click Configurations tab and select the configuration from the list.

  2. Click Java > Resources tab.

  3. Under Custom Resource, click New.

Properties for Custom Resources

The following table describes the properties available for creating a custom resource.

Table 11–3 Custom Resources Properties

Property

Description

JNDI Name

Provides a unique JNDI name for the custom resource. 

Enabled

Determines if this custom resource is enabled at runtime. 

Resource Type

Fully qualified type of resource. 

Factory Class

Class that instantiates resources of this type. The fully qualified name of the user-written factory class that implements the javax.naming.spi.ObjectFactory.

Description

Provide a short description for the custom resource. 

Properties

Provides CLI properties. Click Add Property to use. 


Note –

Using CLI

To create a custom resource through CLI, execute the following command:


wadm> create-custom-resource --user=admin --password-file=admin.pwd --host=serverhost 
--port=8989 --config=config1 --res-type=samples.jndi.customResource.MyBean 
--factory-class=samples.jndi.customResource.MyCustomConnectionFactory custom

See CLI Reference, create-custom-resource(1).