Establishing a session

An application must establish a session before it can request to perform business processes.

To establish a session, the client code must do the following:

  1. Retrieve an instance of CSClient from the context hierarchy.
  2. Register interest in the CSStatusChangedEvent.
  3. Establish a session on the server by invoking an establishSession method.
  4. Handle any events fired by the CSClient service in the dispatchEvent method.