|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.Tobj.Server
Provides callback methods that can be used for application-specific server initialization and termination logic. Default implementations are provided.
Constructor Summary | |
Server()
|
Method Summary | |
boolean |
initialize(java.lang.String[] args)
Allows the application to perform application-specific initialization procedures, such as logging into a database, creating and registering well-known object factories, initializing global variables, and so forth. |
void |
release()
Allows the application to perform any application-specific cleanup, such as logging off a database, unregistering well-known factories, or deallocating resources. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Server()
Method Detail |
public boolean initialize(java.lang.String[] args) throws InitializeFailed
Note: Default implementation opens default XA RM.
The com.beasys.Tobj.Servant.initialize method, which is invoked as the last step in server initialization, allows the application to perform application-specific initialization. Typically, a server application does the following tasks in the initialize method:
Note: If the server application implements the initialize method, it is the responsibility of the server application to open any required XA resource managers. This is done by invoking either of the following methods:
Note: This behavior of initialize method is different from previous releases of the M3 software. In earlier versions the server application had to call com.beasys.Tobj.TP.open_xa_rm() explicitly, even for server applications using the null XA interface. For this release of the M3 software, the call can be done implicitly by not implementing the initialize method.
args
- Command line options. The argv[0] argument contains the
name of the server.If the return value is FALSE:
public void release() throws ReleaseFailed
Note: Default implementation closes default XA RM.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |