Hitachi

uCosminexus Application Server Command Reference Guide


cjrollbacktrn (Roll back unconcluded transactions)

Organization of this page

Format

cjrollbacktrn [server-name] [-nameserver provider-URL]
      -gid global-transaction-ID

Function

Specifies an unconcluded (Prepared) global transaction ID existing on the J2EE server and rolls back the transaction. Note that you can use this command when the TP1 inbound integration functionality is used.

If the specified global transaction ID exists, the command concludes the transaction.

If the specified global transaction ID is invalid, the command returns KFCB40122-E and Usage (KFCB40133-E).

If the specified global transaction ID does not exist, the command returns KFCB40131-E; however, does not return the Usage.

This command can be executed if true is set for the ejbserver.distributedtx.XATransaction.enabled key in the usrconf.properties file (user property file for the J2EE server).

Arguments

server-name

Specifies the name of the 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, in the following format:

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

For details on the specified contents, see 2.1.2 Provider URL.

-gid global-transaction-ID

Specifies the global transaction ID of the transaction to be rolled back.

Input examples

cjrollbacktrn MyServer -gid d13800010000000000000000000000fefb57e6480000000000000001

Return values

0:

The command terminated normally.

1:

The command terminated abnormally.

3:

A timeout occurred.

9:

The command cannot be executed because there are no administrator privileges (in Windows).

Notes