Try OpenEdge Now
skip to main content
Java Open Clients
Using SmartDataObjects from Java Clients : Connecting to an AppServer using an SDOAppObject
 

Connecting to an AppServer using an SDOAppObject

To establish a connection to an AppServer, you must instantiate an SDOAppObject.
The following constructors for the SDOAppObject class take the same parameters and connect to an AppServer in the same way as any AppObject constructor:
Syntax
public SDOAppObject(com.progress.open4gl.javaproxy.Connection connectObj)
Syntax
public SDOAppObject(String urlString, String userId, String password,
   String AppServer-info)
Syntax
public SDOAppObject(String userId, String password, String AppServer-info)
Syntax
public SDOAppObject()
ConnectObj
Specifies the Connection object that contains the AppServer connection information. A Connection object can be instantiated with one of the constructors described in Connection class.
urlString
Specifies the AppServer connection information.
userId, password, AppServer-info
Specify any information required by the AppServer application at connection time.
For more information on how to specify these parameters, see Connectingto an AppServer.