O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 (HelloApplet.java).

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 HelloClient.java to your project directory. Import the packages required for the client class:

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required