Generated Server

Module1Srv controls start-up and shut-down procedures for a specific application server and any associated Resource Manager linked with the server.
 

Hierarchy

BEATuxBldr · Server · Module1Srv (Generated Server)
 

Description

A specific instance of the Generated Server class is generated by the Rose Expert for each module in the Rose Model. Normally, a factory method (virtual constructor) would be used to create an object of this class, but the Rose Expert specifies the class name, allowing instantiating from the generated code without requiring the implementation of an abstract factory method. In addition to simplifying implementation, this approach allows you to independently extend the interface and modify the default implementation.

The member functions of this class are used to control server start-up and shut-down procedures and the Resource Manager connection and disconnection procedures. The default implementation provided in BEATuxBldr::Server can be independently extended in Module1Srv.

Module1Srv is instantiated by the server in the tpsvrinit function called at server start-up. The server main function is provided by the BEA TUXEDO server main. This class is generated by the Rose Expert as a singleton class.
 

Member Functions

This section lists the member functions of the Generated Server class.

Table 4-13 Generated Server Member Functions

Name Documented

close_xa_rm

Server

Instance

Module1Srv (Generated Server)

initialize

Server

open_xa_rm

Server

release

Server


 

Instance

Instance returns a pointer to the single instance of Module1Srv in the Module1 BEA TUXEDO server.
 

Synopsis

static Module1Srv* Instance()

 

Description

This is used by the generated code to create a single instance of Module1Srv.