Obtaining the ServerApp Object 

You can only create and use one instance of ServerApp object per application program.

Example

The following example shows the typical manner in which you can obtain a reference to a single instance of this class.

com.sap.rfc.ServerApp _serverApp = null;

_serverApp = com.sap.rfc.ServerApp.getInstance();