Show TOC Start of Content Area

Procedure documentation Generating Support Classes Based on the Notificator.idl  Locate the document in its SAP Library structure

Use

Based on the Notificator.idl, you must generate the classes that will support the callback object activation and will dispatch the client request to the callback object’s implementation (remember that the Notificator object acts as a server-side object for the calls from the UtilCallback bean when its isPrime method is called). These objects are based on the CORBA Portable Object Adapter (POA) architecture, which is the default object adapter for CORBA 2.1 (effective since J2SE 1.4).

You generate the support classes using the standard idlj tool that is distributed with your JDK software.

CORBA POA Architecture Snapshot

The Portable Object Adapter (POA) hosts the implementations of remote objects (called servants). The main responsibility of the POA is to dispatch the client request to a remote object to the appropriate servant. The client requests a server-side remote object using a reference. This request is first received by the ORB on the server-side, and then it dispatches it to the corresponding POA that hosts the object’s implementation.

For more information about the POA architecture, see the CORBA programming guides for J2SE 1.4 on Sun Microsystem’s Web site at http://java.sun.com.

Procedure

...

       1.      Start the idlj tool using the idlj.exe file that is located in the <jdk_isntall_dir>/bin directory.

       2.      Use the idlj command with the following options:

                            a.      Enter the –fall option to define the bindings to be emitted.

                            b.      Use the option –i to include the path to the <jdk_install_dir>/lib directory. This directory contains the orb.idl file, which is required for the generation process.

                            c.      Finally, enter the location of the Notificator.idl file and press Enter.

Result

You now have the following classes generated in the directory where your Notificator.idl file resides:

·        Notificator.java

·        NotificatorHelper.java

·        NotificatorHolder.java

·        NotificatorOperations.java

·        NotificatorPOA.java

·        _Notificator_Stub.java

Next Step:

Importing the Support Classes to a Developer Studio Project

 

End of Content Area