Now let's look at the differences when writing an CORBA client as an applet rather than as a standalone application. Here are the basic differences:
1. You typically code the CORBA initialization in the applet's "init" method rather than in "main"
2. The CORBA.init method is a bit different for applets - the first argument is the "this" pointer for the applet itself
Despite these changes, the CORBA-related code in an applet client is basically the same as in an application. You still use the CORBA name service to find remote references, narrowt the returned reference to the correct type, and so forth.
One other difference between applets and applications -- to use an applet from within a browser, you need to write an HTML page that references the applet. And it turns out that the HTML for CORBA applets is quite messy as we will see next.