Coding the startup process

To code the startup and session end process, you should develop the following:

Startup beans

Before the Java(TM) Client Sample Application start, the startup beans initialize the CHA, sample Business Process Component, CHA Formatter Service, and services components.

Application startup

In the client, the startup process StartupClientOp launches first during the startup. It initializes the client side according to the client configuration file and external definition files.

In the application presentation server, the StartServerServlet initializes the application presentation server according to the presentation configuration file and external definition files.

On the application logic server, the StartupServerActionEJB does some initialization for the application logic server.

Session establishment

The client sends an HTTPRequest to the JavaStartupSessionInvoker In the application presentation server to create an HTTP session between the client and the application presentation server. When the session establishes, the client creates the client session context and chains it to the workstation context on the client side, and the application presentation server creates the application presentation server context and chains it to the branch context In the application presentation server.

You can find the classes for all the processes, invokers, and EJBs and their associated properties files in the com.btt.samples.appl.* package.