Using operations

To use an operation, do the following:
  1. Instantiate the operation using a method call such as the following:
    ClientOperation op;
    op =(ClientOperation)DSEClientOperation.readObject("myOperation"); 
  2. Invoke the operation's execute method:
    op.execute();
    In the execute() method of your operation, work with the data in the context and call the invoker to perform the business logic.
  3. Once the operation has finished executing, close it to free the operation resources:
    op.close(); 
In an application that has a Java(TM) client that uses client and server side operations, the C/S Messaging API receives the operation request from the client, calls the invoker implementation of the server operation, and closes the operation once it has finished executing.