Release 10.1A: OpenEdge Development:
Open Client Introduction and Programming

> ## Connecting to an AppServer

> To specify an AppServer connection for a client application using an Open Client interface, you provide the same connection information as for a 4GL client application. How you provide the connection information depends on your type of client:

> - For Java and .NET clients, you pass the connection information as a set of parameters to the `Connection` object constructor, and the `Connection` object is passed as a parameter to the AppObject constructor. Alternately, you can pass the connection information directly as a set of parameters to the AppObject’s constructor. You specify the session model to use for the connection (session-managed or session-free) using run-time property settings that you make prior to the connection. For more information on run-time property settings, see the "Accessing Open Client run-time properties" section. For more information on the `Connection` object for Java Open Clients, see OpenEdge Development: Java Open Clients . For more information on the `Connection` object for .NET Open Clients, see OpenEdge Development: .NET Open Clients .

> Note: As a run-time property setting, you must specify the session model according to the requirements of each application service you access, as specified by the AppServer operating mode configuration.

> - For session-managed Web services, you call a `Connect_``AppObject` method after instantiating the AppObject. For session-free Web services, you simply instantiate the AppObject, with no need to invoke a connect method. For details, see OpenEdge Development: Web Services .

> For more information on session models and how they affect Open Client applications, see Chapter 1, " Overview."

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095