Electronic Journal request example

The following is an example of how a process invokes a method in the journal requester to add, retrieve, or update a record and the definition files for the Electronic Journal service required to support the request.
try {
  // 1) Prepare the context
  context = new com.ibm.btt.base.Context("testCtx", true);
  context.setValueAt("name", "Tom"; 
  context.setValueAt("age", new Integer(19));
  context.setValueAt("salary", new Float(100.00));

  // 2) Prepare the formatter formatter = new 
  com.ibm.btt.formatter.client.FormatElement(); 
  formatter.setName("testFmt");

  // 3) Add to journal
  journal.addRecord(context,formatter);
  
} catch (DSEException e) {
  System.out.println(e.getMessage());
  return;
}