Try OpenEdge Now
skip to main content
Java Open Clients
Using the Open Client Java OpenAPI to Directly Access the AppServer : Connecting to the AppServer
 

Connecting to the AppServer

To establish a connection to an AppServer 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 AppServer. For more information on this object, see Connecting to an AppServer.
appservice
Specifies the name of the application service provided by the AppServer.
url
Specifies the URL to connect to an AppServer URL. Defaults to AppServer://localhost:5162/appService. For more information on the AppServer URL connection parameter format and default connection information, see the sections on connecting to an AppServer using a URL in OpenEdge Application Server: Developing AppServer Applications.
userid
Specifies a user ID required to access the AppServer.
password
Specifies a password required to access the AppServer.
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 AppServer 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 Accessing Proxy Properties.