Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 1: For CORBA-compliant EAServer components – PB Docs 2018 – PowerBuilder Library

Syntax 1: For CORBA-compliant EAServer components – PB Docs 2018

Syntax 1: For CORBA-compliant EAServer components

Description

Allows a PowerBuilder client or component to obtain the factory
interface of an EAServer component in order to create an instance of the
component.

Applies to

Connection objects, TransactionServer objects

Syntax

Argument

Description

objname

The name of the Connection object used to establish
the connection or of an instance of the TransactionServer
context object.

objectvariable

A global, instance, or local variable of the
factory interface type.

componentname 

A string whose value is the name of the component
instance to be created. You can optionally prepend a package
name followed by a slash to the component name (for example,
“mypackage/mycomponent”).

Return value

Long.

Returns 0 if it succeeds and a negative number if an error
occurs.

Usage

The Lookup function can be used as an alternative to the
CreateInstance function. It obtains a reference to a factory interface
that you can use to create an instance of a component running in
EAServer.

Use the Connection object’s Lookup function to enable a
PowerBuilder client to access a component running in EAServer. You can
supply a server name or a list of server names in the location property
of the Connection object.

Use the TransactionServer object’s Lookup function to enable a
PowerBuilder component running in EAServer to access another component
running on the same server.

To use the Lookup function, you need to create an EAServer proxy
library for the SessionManager package to obtain a proxy for the factory
interface. Include this proxy library in your library list.

Examples

The following example uses Lookup to instantiate the factory
interface for the n_Bank_Account component, then it uses the factory’s
create method to create an instance of the component:

See also

CreateInstance


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x