endurox-java
Functions
Server threads

Functions

native long org.endurox.AtmiCtx.tpsrvgetctxdata ()
 
native void org.endurox.AtmiCtx.tpsrvsetctxdata (long dataptr, long flags)
 
native void org.endurox.AtmiCtx.tpsrvfreectxdata (long dataptr)
 
native void org.endurox.AtmiCtx.tpcontinue ()
 

Detailed Description

Server threads processing. From the dispatcher thread XATMI call handle can be captured and delivered to worker thread. The handle must be freed by tpsrvfreectxdata().

Function Documentation

◆ tpcontinue()

native void org.endurox.AtmiCtx.tpcontinue ( )

Continue the server work after extracting the context data

◆ tpsrvfreectxdata()

native void org.endurox.AtmiCtx.tpsrvfreectxdata ( long  dataptr)

Free Server context data

Parameters
dataptrpointer returned by \r tpsrvgetctxdata()

◆ tpsrvgetctxdata()

native long org.endurox.AtmiCtx.tpsrvgetctxdata ( )

Get server context data for multi threaded server See tpsrvgetctxdata(3) manpage for more information.

Exceptions
AtmiTPEPROTOExceptionGlobal transaction was started and it was marked for abort-only, there was any open call descriptors with-in global transaction,
AtmiTPERMERRExceptionGlobal transaction was started and it was marked for abort-only, there was any open call descriptors with-in global transaction
AtmiTPESYSTEMExceptionSystem failure occurred during serving. See logs i.e. user log, or debugs for more info. This could also be a problem with dynamical driver loading.
AtmiTPEOSExceptionSystem failure occurred during serving. See logs i.e. user log, or debugs for more info.
Returns
C pointer to allocated server context data

◆ tpsrvsetctxdata()

native void org.endurox.AtmiCtx.tpsrvsetctxdata ( long  dataptr,
long  flags 
)

Associate current thread with server call data. See tpsrvsetctxdata(3) manpage for more information.

Parameters
flags[in]for server worker threads use AtmiConst.SYS_SRV_THREAD