Associating IServerFunction and IServerProcess 

After creating a server process class, you need to associate an instance of this server process class with the IServerFunction object you have been constructing.

To do so, first create a new instance of the server process class, then call the method IServerFunction.setServerProcess(IServerProcess) of the IServerFunction object.

Example

The following section of code shows how this is done.

The code uses the IServerFunction object we have been constructing in the examples in Using the IServerFunctionFactory Object and Adding Parameter Objects to IServerFunction. It also uses the server process class from the example in Creating a Server Process for Incoming Calls.

com.sap.rfc.IServerProcess processComputeTax =

new ComputeTaxProcess();

rfcComputeTax.setServerProcess(processComputeTax);