Creating a session entry

The application is responsible for creating a session (channel session) entry in the table. Once this session has been created, the toolkit is able to manage the fields defined by the application session entry. The context is used to manage the key data between requests. This is usually performed by an operation that must run during the initialization process of the client.

The session ID is maintained by the multichannel support implementation in the ChannelSession instance and is passed to the operation during the request to execute. The request handler must execute the operation using the following method:

void runInSession(String aSessionID);

The operation must create the session entry in the application session table using the Context class method, as accomplished by the following addSession() method call:

void addSession(String type, Long timestamp, String sessionID, String tid, Context aContext);