Description
rollbackAllTransactions rolls back all transactions in an Appeon Server or an Appeon Server cluster. To roll back all transactions in an Appeon Server cluster, you need to first configure the cluster in AEM.
proxyobject.of_execinterface ( "rollbackAllTransactions", ref any paralist[] )
Table 24.
Argument |
Description |
---|---|
proxyobject |
The instance of the proxy object generated for AppeonDotNetComponent. |
paralist[] |
Arrays of Any type. Specifies the parameter arrays for the component function. paralist[1] - The name of the Appeon Server that you want to kill all sessions on. The value should be IP address or IP address with port number, for example, 192.0.0.123, or 192.0.0.123:8080, and separated with semicolons (;) if there are multiple servers (for example in an Appeon Server cluster). If paralist[1] is NULL or empty string (""), it rolls back all transactions in an Appeon Server cluster. |
Return value of of_execinterface
Returns 0 if it succeeds and -1 if it fails.
Return value of rollbackAllTransactions
Boolean.
It returns true if it succeeds and false if it fails. The return value is stored in the ReturnValue property of the proxy object.
Code example
Any la_l[] Long lRet ... la_l[1] = ls_servername lRet = loadDBList.of_ExecInterface ("rollbackAllTransaction", la_l) //result is returned to loadDBList.ReturnValue
io_ejb.regstring ( String serverName )
io_ejb.Invokeretbool ( long objid, "rollbackAllTransactions", true, ref boolean retval )
Table 25.
Argument |
Description |
---|---|
io_ejb |
A reference of Appeon EJBobject. |
serverName |
The name of the Appeon Server that you want to kill all sessions on. The value should be IP address or IP address with port number, for example, 192.0.0.123, or 192.0.0.123:8080, and separated with semicolons (;) if there are multiple servers (for example in an Appeon Server cluster). If serverName is NULL or empty string (""), it rolls back all transactions in an Appeon Server cluster. |
objid |
The handle to the component method. |
retval |
The return value of rollbackAllTransactions function: true if it succeeds and false if it fails. This parameter must be declared, but need not to be assigned with values, as it is used to hold the return value. |
Return value of Invokeretbool
Returns 0 if it succeeds and -1 if it fails.
Return value of rollbackAllTransactions
Boolean.
It returns true if it succeeds and false if it fails. The return value is stored in the retval property of the Invokeretbool function.
Code example
Note that invokeretbool function is called because the return value is a boolean.
string ls_msg boolean retval01 ... io_ejb.regstring (ls_servername) ls_msg = io_ejb.invokeretbool (il_bean1, "rollbackAllTransaction", true, ref retval01) //result is returned to retval01