To establish a connection to an application server using the Java OpenAPI, you must instantiate a com.progress.open4gl.javaproxy.OpenAppObject. You can create an OpenAppObject using one of the following constructors:

Syntax

public OpenAppObject(Connection connectObj, String appservice)

public OpenAppObject(String url, String userid, String password,
     String appserver-info, String appservice)

public OpenAppObject(String userid, String password, 
     String appserver-info, String appservice)

public OpenAppObject(String appservice)
connectObj
Specifies a com.progress.open4gl.javaproxy.Connection object, which defines connection parameters to access the application server. For more information on this object, see Connect to an application server.
appservice
Specifies the name of the application service provided by the application server.
url
Specifies the URL to connect to an application server URL. Defaults to <http://localhost:8810/apsv/.
userid
Specifies a user ID required to access the application server.
password
Specifies a password required to access the application server.
appserver-info
Specifies information required by the application service at connection time.

You can set a number of session and run-time properties to manage access to an application service. For example, to access a session-free application server using the Java OpenAPI, you must set the proxy property PROGRESS.Session.sessionModel to 1. For more information on setting this and other session properties see Access Proxy Properties.