cjdeployrar (deploy resource adapter)
Format
cjdeployrar [server-name] [-nameserver provider-URL]
-resname resource-adapter-name
[-resname resource-adapter-name ...]
Function
This command deploys a specified resource adapter. A resource adapter that has not yet been deployed becomes the target. A resource adapter that has the same display name as a resource adapter that has already been added to the application cannot be specified. This command can deploy multiple resource adapters concurrently.
Arguments
- server-name
- Specifies the name of a connected J2EE server. If the server name is omitted, the host name is used as the server name.
- -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.
- -resname resource-adapter-name
- Specifies the name of a resource adapter.
Input examples
cjdeployrar MyServer -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.
- 8:
- Deployment was successful but startup failed.
- 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
- When you specify a server name in the command arguments, you must specify it immediately after the command name. You can specify the other arguments in any order as long as they are subsequent to the server name (or subsequent to the command name if the server name is omitted). However, you cannot switch the sequence of an option name and its corresponding value (for example, you cannot specify resource-adapter-name -resname); also, you cannot specify an option name in conjunction with a non-corresponding value (for example, you cannot specify -resname provider-URL -nameserver resource-adapter-name).
- 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).
- If multiple resource adapters are to be deployed concurrently, this command attempts to add all of the specified resource adapters even if there are resource adapters that cannot be added.
- If you specify a resource adapter that is already started with the runtime information, the automatic startup processing is performed after completing the deployment of the resource adapter. If the automatic startup processing fails, the J2EE resource adapter is not deleted.