
You use the same tool that you used in the previous step to generate the C++ files out of the IDL files that you generated against the UtilCallback bean's remote and home interfaces. You just execute the corresponding command with different options that instruct the tool not to generate skeletons for those objects.
You must run the idl tool against the IDL files that are located in three different directories. They are subdirectories of the one that you specified with the -d option of the rmic command when you generated the IDL representation of the CallbackApplication, as described in Generating IDL Representation of the Callback Application :
This note only applies if you are using the ORBacus ORB and the idl tool provided with it to generate the C++ files. In this case, you must open (in a text processing application) the Throwable.idl file located under the ..\java\lang subdirectory. Find the line containing the following code:
custom valuetype Throwable {
and remove the custom keyword. Then save the file.
This change is necessary since it causes an error to the idl tool that will not let you generate the C++ files.
You must have installed the appropriate ORB software on your machine so that you can use its tools to generate C++ files out of the IDL ones.
Execute the idl.exe file that is located under the <orbacus_ dir>\bin directory on your machine against the files mentioned above. Provide the following options with the command:
Make sure that you specify an existing directory in the directory path you specify with this option. If your path includes a non-existing directory, the tool will not create one, rather it will generate an error and the C++ files generation will fail.
You have successfully generated the C++ files that represent the Callback Application. Now you can insert those files in the Microsoft Visual Studio development environment that you use and continue with the implementation of the callback object and the client itself.