[Top] [Prev] [Next] [Bottom]

tpsvrdone(3c)

tpsvrdone(3c)

tpsvrdone(3c)-BEA TUXEDO system server termination routine

Synopsis

#include <atmi.h>
void tpsvrdone(void)

Description

The BEA TUXEDO system server abstraction calls tpsvrdone after it has finished processing service requests but before it exits. When this routine is invoked, the server is still part of the system but its own services have been unadvertised. Thus, BEA TUXEDO system communication can be performed and transactions can be defined in this routine. However, if tpsvrdone returns with open connections, asynchronous replies pending or while still in transaction mode, the BEA TUXEDO system will close its connections, ignore any pending replies and abort the transaction before the server exits.

If a server is shut down by the invocation of tmshutdown -y, services are suspended and the ability to perform communication or to begin transactions in tpsvrdone is limited.

If an application does not provide this routine in a server, then the default version provided by the BEA TUXEDO system is called instead. The default tpsvrdone calls tpclose and userlog to announce that the server is about to exit.

Usage

If either tpreturn(3c) or tpforward(3c) is called in tpsvrdone, it simply returns having no effect.

See Also

servopts(5), tpclose(3c), tpsvrinit(3c)



[Top] [Prev] [Next] [Bottom]