Developing a Client Application

This section introduces the basics of writing a CORBA client application. Many of the steps are identical to those required for writing applets. The major difference is that the applet code appears in the init() method rather than in main(). The complete code for the applet version follows shortly (

The basic shell of a CORBA client is the same as many Java applications: You import required library packages, declare the application class, define a main() method, and remember to handle any exceptions.

Start your text editor and save a new file titled to your project directory. Import the packages required for the client class:

 import HelloApp.*; //The package containing our stubs. ...

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.