killAllSessions

Description

killAllSessions kills all active sessions in an Appeon Server or an Appeon Server cluster and rolls back all associated transactions. To kill all sessions in an Appeon Server cluster, you need to first configure the cluster in AEM.

Syntax for .NET component

proxyobject.of_execinterface ( "killAllSessions", ref any paralist[] )

Table 20. 

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 Appeon Server 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 an Appeon Server cluster).

If paralist[1] is NULL or empty string (""), it kills all sessions and rolls back all associated transactions in an Appeon Server 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

Syntax for EJB component

io_ejb.regstring ( String serverName )

io_ejb.Invokeretbool ( long objid, "killAllSessions", true, ref boolean retval )

Table 21. 

Argument

Description

io_ejb

A reference of Appeon EJBobject.

serverName

The name of Appeon Server 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 an Appeon Server cluster).

If serverName is NULL or empty string (""), it kills all sessions and rolls back all associated transactions in an Appeon Server 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