Creating a subsession entry

The application must create a child application subsession entry in the table for a parent session (channel session). Currently, the toolkit manages a channel session and its application subsessions. The application session may not be nested, however, because of the protocol defined for communication between the client and the server. The application session is maintained between requests by setting the value of the application session ID in the operation. The current Java and XML channel implementations ensure that the application session ID is sent between the client and the server in the protocol.

The application session must contain a unique key and can be generated by the JavaExtensions class method, as follows:

String getAlphaUniqueCode();
String getAlphaUniqueCode(String userString);

Once the unique key for the application session has been created, the application session ID must update the instance of DSEOperation, using the following method call:

void setApplicationId(String appId);

For all subsequent requests from the client, the application session ID can be accessed from the instance of the DSEOperation, as follows:

String getApplicationId();

The operation must insert the entry in the application session table using the Context class method as follows:

void addApplicationSession(String session, String application, Context aContext);

This method will create a new session entry for the application session nested within the session.