Description
killAllSessions kills all active sessions in a PowerServer or a PowerServer cluster and rolls back all associated transactions. To kill all sessions in a PowerServer cluster, you need to first configure the cluster in AEM.
proxyobject.of_execinterface ( "killAllSessions", ref any paralist[] )
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 PowerServer for which you want to kill all sessions. 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 a PowerServer cluster). If paralist[1] is NULL or empty string (""), it kills all sessions and rolls back all associated transactions in a PowerServer cluster. |
Return value of of_execinterface
Returns 0 if it succeeds and -1 if it fails.
Return value of killAllSessions
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 ("killAllSessions", la_l) //result is returned to loadDBList.ReturnValue
io_ejb.regstring ( String serverName )
io_ejb.Invokeretbool ( long objid, "killAllSessions", true, ref boolean retval )
Argument |
Description |
---|---|
io_ejb |
A reference of Appeon EJBobject. |
serverName |
The name of PowerServer for which you want to kill all sessions. 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 a PowerServer cluster). If serverName is NULL or empty string (""), it kills all sessions and rolls back all associated transactions in a PowerServer cluster. |
objid |
The handle to the component method. |
retval |
The return value of killAllSessions 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 killAllSessions
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, "killAllSessions", true, ref retval01) //result is returned to retval01
killAllSessions ( String as_server )
Argument |
Description |
---|---|
as_server |
The name of PowerServer for which you want to kill all sessions. 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 a PowerServer cluster). If as_server is NULL or empty string (""), it kills all sessions and rolls back all associated transactions in a PowerServer cluster. |
Return value
Returns 1 if it succeeds and -1 if it fails.
Code example
//-- connected with the web service …… string ls_return,ls_server,ls_app ls_server = sle_1.text ls_app = sle_2.text ls_return = ieon_ws.killallsessions(ls_server) mle_1.text = ls_return