Use this command to delete a WSRR definition that has been named
or supplied as a target object.
If the definition cannot be found, or the name and target object
are both supplied but conflict, an exception will be thrown. This command
will only delete the default WSRR definition if it’s the only definition in
the cell. If there are other definitions present in the cell, the command
will fail and you will need to need to change the default to another WSRR
definition before the current one can be deleted.
Before you begin
The
deleteWSRRDefinition command
is run using the AdminTask object of the wsadmin scripting client.
- Locate the command that starts the wsadmin scripting client: this is found
in the install_root\bin directory.
- Run the wsadmin command.
- If the server is not running, use the -conntype none option.
- If you are not connecting to the default profile, use the -profileName profile_name option.
Use the following command to list all the WSRR administrative
commands.
wsadmin> $AdminTask help SIBXWSRRAdminCommands
Use
the following command to get detailed help on a particular command.
wsadmin> $AdminTask help command_name
Syntax
$AdminTask deleteWSRRDefinition {-paramName paramValue ...}
Purpose
The deleteWSRRDefinition command
deletes a WSRR definition that has been named or supplied as a target object.
- Command name
- deleteWSRRDefinition
- Target
- javax.management.ObjectName RegistryDefinition – the
RegistryDefinition to be deleted.
- Result
- Deletes the WSRR definition
Parameters
- -name definitionName
- The name of the WSRR definition to be deleted, as a string.
Example
wsadmin>$AdminTask deleteWSRRDefinition {-name MydefName}