public class CustomerContextImpl implements Context ( private static final long serialVersionUID = 1L; public void addChild(Context aNewChild) throws DSEInvalidRequestException { // Add implemeantation code here }
public void chainTo(Context aContext) throws DSEInvalidRequestException { // Add implemeantation code here }
public void clearKeyedCollection() throws DSEInvalidRequestExcption { // Add implemeantation code here } //... ...
2 Modify the context setting in btt.xml:
<kColl id="classTable"> <!-- indicates the implementation class of context--> <field id="context" value="com.ibm.btt.base.CustomerContextImpl"/> </kColl>
What to do next
When CHA starts, it automatically locates the context implementation class. The newly implemented context can be accessed by ContextFactory.
For information about the programming examples, see Programming Examples.