cjsetresprop (set Property of resource)

Format

For an EJB-JAR or WAR file

cjsetresprop [server-name] [-nameserver provider-URL]
   -type {ejb|war}
   -resname resource-display-name[/lower-resource-display-name]
   -c Property-File-path

For a data source file

cjsetresprop [server-name] [-nameserver provider-URL]
      -type datasource -resname data-source-display-name
      -c Property-File-path

For mail

cjsetresprop [server-name] [-nameserver provider-URL]
      -type mail -resname mail-display-name
      -c Property-File-path

For an RAR file

cjsetresprop [server-name] [-nameserver provider-URL]
      -type rar -resname resource-adapter-display-name
      -c Property-File-path

Function

This command changes the Property of the resources contained in an EJB-JAR file (EJB-JAR file, Session Bean, Entity Bean, and Message-driven Bean), the Property of the resources contained in a WAR file (WAR file, servlet/JSP, filter), the Property of a data source file, the Property of mail, or the Property of the resources contained in an undeployed RAR file, to the values specified in a Property File.

If the display name of a lower resource is not specified, the specification is for the EJB-JAR or WAR file.

For the Property Files used to set up J2EE applications and resources, see the following locations:

Arguments

server-name
Specifies the name of a connected J2EE server. If the server name is omitted, the host name is assumed.
-nameserver provider-URL
Specifies the access protocol for the CORBA Naming Service, the name of the host running the CORBA Naming Service, and the port number being used by the host. These items are specified in the following format:

protocol-name: : host-name: port-number

For details on the specification items, see 2.1(2) Provider URL.
-type {ejb|war|datasource|mail|rar}
Specifies the type of resource that is to be set up:
  • ejb: Property of EJB-JAR file or the resources in an EJB-JAR file
  • war: Property of WAR file or the resources in a WAR file
  • datasource: Data source file
  • mail: Mail
  • rar: Property of Undeployed RAR file
-resname resource-display-name, data-source-display-name, mail-display-name, or resource-adapter-display-name
Specifies the display name of the resource to be set up.
  • For an EJB-JAR file: EJB-JAR-file-display-name
  • For an EJB file: EJB-JAR-file-display-name[/Enterprise-Bean-display-name]
  • For a WAR file: WAR-file-display-name
  • For a servlet/JSP: WAR-file-display-name[/servlet/JSP-display-name]
  • For a filter: WAR-file-display-name[/filter-display-name]
  • For data source file: Data-source-file- display-name
  • For mail: Mail-display-name
  • For an RAR file: RAR-file-display-name
-c Property File-path
Specifies the path of the input source Property File.

Input examples

For an EJB-JAR file

cjsetresprop MyServer -type ejb -resname accountJsp/MyAccount -c MyAccountProp.xml

For a WAR file

cjsetresprop MyServer -type war -resname account-war/Account -c AccountProp.xml

For a data source file

cjsetresprop MyServer -type datasource -resname JdbcDbpsv -c JdbcDbpsvProp.xml

For mail

cjsetresprop MyServer -type mail -resname Mail -c MailProp.xml

For an RAR file

cjsetresprop MyServer -type rar -resname account-ra -c AccountProp.xml

Return values

0:
The command terminated normally.
1:
The command terminated abnormally.
2:
The command could not be executed because of an exclusion error.
3:
A timeout occurred.
9:
The command could not be executed because there are no administrator privileges (in Windows Server 2012, Windows Server 2008, Windows 8, Windows 7, or Windows Vista).

Notes