Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Add Resources

The remote add-resources command enables you to create the resources named in the specified XML file.

The XML file must reside in the as-install/domains/domain1/config directory. If you specify a relative path or simply provide the name of the XML file, this command will prepend as-install/domains/domain1/config to this operand.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Add resources from an XML file by using the add-resources(1) command.

Example 2–16 Adding Resources

The following example command creates resources using the contents of the resource.xml file on localhost:

asadmin add-resources c:\tmp\resource.xml

Information similar to the following is displayed:

Command : JDBC resource jdbc1 created successfully.
Command : JDBC connection pool poolA created successfully.
Command add-resources executed successfully.

See Also

To see the full syntax and options of the command, type asadmin add-resources --help at the command line.