After you have validated your Java environment settings and generated proxies for the enterprise beans you want to access, you can begin coding your client application in earnest. Regardless of its complexity, any PowerBuilder application that accesses an EJB server follows the same six basic steps:
Loads the Java VM
Connects to the EJB server
Locates an EJB
Instantiates an EJB
Invokes methods on an EJB
Disconnects from the EJB server
For those readers who have not yet become familiar with the TRY-CATCH-FINALLY construct introduced in PowerBuilder 8, this is a good opportunity to do so. As we present various coding samples in this section, you will note that this Java style of exception ...