endurox.tpsrvgetctxdata

endurox.tpsrvgetctxdata() endurox.PyTpSrvCtxtData

Retrieve ATMI server context data. this function is used for cases when server multi-threading is managed by the user software. The other use of this function maybe related with architectures where immediate response to the client process is not required, but next service request may be processed.

After the function call, the server may proceed with call of endurox.tpcontinue() call (i.e. tpreturn or tpforward must not be used).

This function applies to ATMI servers only.

For more details see tpsrvgetctxdata(3) C API call.

Raises:

AtmiException

Following error codes may be present:
TPEINVAL - Invalid subscription id was passed.
TPEPROTO - Global transaction was started and it was marked for abort-only, there was any open call descriptors with-in global transaction,
TPERMERR - Resource Manager failed (failed to suspend global transaction).
TPESYSTEM - System failure occurred during serving
TPESVCERR - Event server crashed.
TPEOS - OS error.

Returns:

ATMI service current request context data.

Return type:

PyTpSrvCtxtData