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.
|