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 Commandsadd-resources(1)


NAME

 addresources - 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

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


Sun Java System Application ServerGo To TopLast Changed 24 Dec 2003