Oracle GlassFish Server 3.0.1 Administration Guide

ProcedureTo Create a Custom JNDI Resource

Use the create-custom-resource subcommand in remote mode to create a custom resource.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. Create a custom resource by using the create-custom-resource(1) subcommand.

    Information on properties for the subcommand is contained in this help page.

  3. Restart GlassFish Server.

    See To Restart a Domain.


Example 20–1 Creating a Custom Resource

This example creates a custom resource named sample-custom-resource.


asadmin> create-custom-resource --restype topic --factoryclass com.imq.topic 
sample_custom_resource
Command create-custom-resource executed successfully.

See Also

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