cjdeleteres (delete resource)
- Organization of this page
Format
cjdeleteres [server-name] [-nameserver provider-URL] -type {ejb|war|datasource|mail|rar} -resname display-name [-resname display-name ...]
Function
This command deletes an imported EJB-JAR file, WAR file, data source file, mail, or RAR file. This command can delete multiple files concurrently.
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 to be deleted:
-
ejb: EJB-JAR file
-
war: WAR file
-
datasource: Data source file
-
mail: Mail
-
rar: RAR file
-
- -resname display-name
-
Specifies the display name of the EJB-JAR file, WAR file, data source file, mail, or RAR file that is to be deleted.
Input examples
- For an EJB-JAR file
cjdeleteres MyServer -type ejb -resname accountJsp
- For a WAR file
cjdeleteres MyServer -type war -resname account-war
- For a data source file
cjdeleteres MyServer -type datasource -resname JdbcDbpsv
- For mail
cjdeleteres MyServer -type mail -resname Mail
- For a RAR file
cjdeleteres MyServer -type rar -resname account-ra
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).
Notes
-
If multiple files are to be deleted concurrently, this command attempts to delete all of the files even if there are files that cannot be deleted.
-
Once a single RAR file has been started or stopped, it cannot be deleted until the J2EE server is restarted.
-
When you specify a server name in the command arguments, you must specify a case-sensitive character string that matches a server name specified in a cjsetup (set up or unsetup J2EE server).