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.
Ensure that the server is running.
Remote commands require a running server.
Add resources from an XML file by using the add-resources(1) command.
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. |
To see the full syntax and options of the command, type asadmin add-resources --help at the command line.