Developing a Tuxedo server
We discussed the Tuxedo client in the previous section and now we'll discuss how to develop a Tuxedo server for a client's request or for other servers that call a server to get some work done and finally return it to the client. The Tuxedo server provides services (business functions) to the client or other servers. It starts the process as it gets the request and replies back to its caller. A service must be made known (advertised) in such a way that another client or server can call it.
The servers are started when a Tuxedo application is booted (tmboot
), and they do the following two things:
tpsvrinit()
, which is a callback function, is called after the server is connected to an application, but before processing any application request. If an XA resource manager is being used with the server,tpopen()
connects to the resource manager usingOPENINFO
from theUBBCONFIG
file.The server registers itself with a Bulletin Board as available for processing any request...