Building an EJB Client
\The Sandbox \PB History & Future \New In PB8 \EJB Clients
Workspaces
Code Examples
UI changes
Working with 
PB8
Starting PB
System Tree
Library painter
Clip & Output
Source editor
AutoScript
Source Control
Exception
Handling
Web Targets
4GL Web
Pages
Web DW
Scripting
Web DW
Container
Web DW
Events
Server-side
Methods
JavaScript
Includes
HTML
Rendering
EAServer
Profiles
EAS/Existing
Interfaces
EJB Clients
EAS
Transactions
SSL
Connections
Concurrency
Property
Multiple
PB VMs
DB Interfaces
ANSI
Outer Join
Proxy
Connections
Loading
DB Libs
PB.INI/DB Info
Command Line
Deployment
Version
for EXEs
Color Support
New Object
Properties
DW
Expressions
DW
Properties
PowerScript
Functions
SaveObject
OLE Event
DBCS Support
GUIDs & MIMEs

Description

PowerBuilder client applications and PowerBuilder components deployed to EAServer can act as clients to Enterprise JavaBeans (EJB) components running in EAServer. In PowerBuilder 7, you could use the JaguarORB object to obtain a reference to an EJB component's home interface. In PowerBuilder 8, you can obtain a reference to the EJB's home interface using the Connection object.

Usage

An EJB has two interfaces: a home interface and a remote (or object) interface. The home interface provides methods that allow a client to create, find, and destroy the EJB. The remote interface provides methods that allow clients to invoke the EJB's business logic. Support for invoking EJB methods is provided for EJBs that conform to version 1.1 of the Enterprise JavaBeans Specification from Sun Microsystems.

An EJB client application uses the two-argument version of the Lookup method on the PowerBuilder connection object to obtain the home interface of an EJB. It then uses the home interface's Create method to get a reference to the remote component. A PowerBuilder component can also use the Lookup method of the connection object to obtain the home interface of an EJB, but in order to obtain more information about the transaction, a component would typically use the Lookup method of the TransactionServer object.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com