Runtime components : Core components : Contexts : Tasks : Working with contexts
  
Working with contexts
The com.ibm.dse.base.Context class provides methods for managing the resources in a context (such as adding and removing data elements and services), managing the context tree (such as chaining and unchaining to contexts and getting the parent context), and for retrieving specific context instances.
Avoid using "currentContext" and "currentChild" contexts: having several processes chain contexts in parallel may return inconsistent results to the application. Make sure that you do confuse this with the current context for a client/server session identifier, which actually returns the corresponding instance of the context related to that session.
For examples of how you can work with contexts, see the following sections.
See
Updating the data elements of a context's keyed collection
Working with services defined in the context
Resetting context keyed collections
Go up to
Tasks