3.5 Other Considerations
You should design the process object to pass the minimum amount of information actually needed by a particular client request. Implement the operations on a process object so that the operations do as much “dense” processing as possible. Design your clients applications so that they do not invoke more than one process operation to get the data they need to accomplish a task.
If more than one operation needs to be invoked, design the process object so that the additional invocations are done by the process object on the database, and not by the client application on the process object. This reduces the number of invocations that the client application sends over the network. When the client application needs to make serial invocations on a process object, make the process object stateful. For more information about making objects stateful, see Creating CORBA Server Applications in the Oracle Tuxedo online documentation.
For CORBA applications, avoid the use of attributes in your OMG IDL. Attributes are expensive to retrieve over the network. Instead, implement an operation on the process object that returns a data structure containing all the values your client application is likely to need for an operation.
Parent topic: Process-Entity Design Pattern