To establish a connection to an application server, you must instantiate an AppObject. You may create an AppObject using one of the four available constructors, described in this section.

The following constructor establishes an application server connection, with the application server information specified in the Connection object (connectObj):

public AppObject(com.progress.open4gl.javaproxy.Connection connectObj)

Where AppObject is the name of the AppObject as defined in ProxyGen.

A Connection object can be instantiated with one of the constructors documented in Connection class.

The following constructor establishes an application server connection, with the specified application server connection information url, user ID, password, and information required by the application server application at connection time:

public AppObject(String url, String userid, String password, 
     String appserver-info)

Where AppObject is the name of the AppObject as defined in ProxyGen.

The following constructor establishes an application server connection, with the specified user ID, password, and information required by the application server application at connection time:

public AppObject(String userid, String password, String appserver-info)

Where AppObject is the name of the AppObject as defined in ProxyGen.

The above constructor uses default application server connection information. This defaults the URL to http://localhost:8810/apsv/appService, where appService is the AppService Name setting specified in the general settings of the ProxyGen Generate Proxies dialog box.

The following constructor establishes an application server connection, with no specified application server information:

public AppObject()

Where AppObject is the name of the AppObject as defined in ProxyGen.

The constructor above uses default application server connection information. This defaults the URL to http://localhost:8810/apsv/, where apsv is the AppService Name setting specified in the general settings of the ProxyGen Generate Proxies dialog box.