Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
 
User Commandsasadmin-add-resources(1AS)


NAME

 add--resources - registers the named resource in the XML file specified.

SYNOPSIS

 add-resources --user admin_user[ --password admin_password ][ --host localhost ] [ --port 4848 ][ --passwordfile filename ][ --secure|-s ][ --instance instance_name ] xml_file_path

DESCRIPTION

 

Registers the named resource in the XML file specified. The xml_file_path is the path to the XML file containing the resources to be registered.


OPTIONS

 
--user
administrative user associated for the instance.
--password
administrative password corresponding to the administrative user.
--host
host name of the machine hosting the administrative instance.
--port
administrative port number associated with the administrative host.
--secure
indicates communication with the administrative instance in secured mode.
--passwordfile
file containing passwords appropriate for the command (e.g., administrative instance).
--instance
name of the instance.

OPERANDS

 
xml_file_path
path to the XML file containing the resource(s) to be registered.

EXAMPLES

 Example 1. Using add-resources
 
 
asadmin> add-resources --user admin --passwordfile passwords.txt --host localhost --port 4848 --instance server1 resource.xml
Created the resource

Where: resource.xml is the resource file containing resources to be created.


EXIT STATUS

 
0
command executed successfully
1
error in executing the command

INTERFACE EQUIVALENT

 

Resources folder


SEE ALSO

 

asadmin-create-jdbc-connection-pool(1AS), asadmin-list-jdbc-resource(1as), asadmin-create-jms-resource(1AS), asadmin-create-jndi-resource(1AS), asadmin-create-javamail-resource(1AS), asadmin-create-persistence-resource(1AS), asadmin-create-custom-resource(1AS)



Sun ONE Application ServerGo To TopLast Changed 9 Sep 2002


Updated: 2003-06-13, 20:27