Lookup – PB Docs 126

EJBConnection:

Lookup method

Description

Allows a PowerBuilder client to obtain the home interface
of an EJB component in an application server in order to create
an instance of the component.

Syntax

Argument

Description

connection

The name of the EJBConnection object
used to establish the connection

proxyname

The name of the proxy object for the
EJB component

JNDIname

The JNDI name of the EJB component

homeinterfacename

The fully-qualified class name of the
EJB home interface

Return Values

Powerobject. A proxy object for the home interface of the
EJB.

Throws

NamingException

Examples

The following example uses lookup to
locate the home interface of the Multiply session EJB in the Java
package com.xyz.math. The example assumes the connection
to the EJB server has already been established:

The style used for the JNDI name depends on the EJB server.

See Also

ConnectToServer


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