Connect to an application server
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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
|
- connectObj
- Specifies a
com.progress.open4gl.javaproxy.Connectionobject, 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.
Note: When Open Client is connecting to PAS for OpenEdge or Appserver Internet
Adapter, the userid and password are used in the HTTP
authentication header. When connecting to classic appserver, they get used as part of the
connection packet instead.
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.