Show TOC Start of Content Area

Procedure documentation Generating IDL Representation of the Notificator Callback Object  Locate the document in its SAP Library structure

Use

For the Java-based client application you only need the IDL representation of the Notificator callback object. Based on the IDL, you will generate the necessary classes that facilitate communication between the UtilCallback bean and the callback object’s implementation on the client side.

To generate the IDL file, use the command-line rmic tool that is distributed with your JDK installation.

Procedure

...

       1.      Start the rmic tool using the rmic.exe file located in the <jdk_install_dir>\bin directory.

       2.      Enter the following arguments for the rmic command (the arguments are listed in the order they must appear on the command line):

                            a.      Use the –classpath option to set classpath to the location of the UtilCallback.jar file in your system. This JAR file is located in the <IDE_install_dir>\workspace\UtilCallback directory.

                            b.      Use the –noValueMethods option to instruct the generator not to define methods for the different value types.

                            c.      This step is optional. Use the –d option followed by the directory path to the directory where you want the generated files to be saved. We recommend that you use this option so that you do not have the generated IDL file saved in the same directory in the workspace where the Notificator.java file resides.

                            d.      Use the –idl option to instruct the rmic compiler to generate an IDL file based on the java source file.

                            e.      Specify the source file to be used to generate the IDL using its fully-qualified name, that is, examples.iiop.Notificator.

Note

If you are not confident about using the rmic command syntax, execute rmic –h to read the help provided with the command.

Result

After you execute the command as described above, you must have the Notificator.idl file generated in the output directory that you have specified.

Next Step:

Generating Support Classes Based on the Notificator.idl

 

End of Content Area