You can generate client-side files with the CORBA template. You can also use the CORBA wizard in addition to add some basic information to expedite the process. Before generating any code, make sure the IDE is set up for the ORB product you want your CORBA programs to work with. You must have an existing IDL file to use the CORBA wizard.
To create a client file using the CORBA Wizard:
The Select Source IDL File pane displays the Filesystem hierarchy in your current session of the IDE. Expand the package you want and select the desired IDL.
If you are writing a client for an existing server, check only Create Client. (Your client will be based on an existing IDL file.)
Select CORBA Naming Service and click Bind Context. In the CORBA Panel dialog box, enter the name of the ORB source providing the naming service (for example, JDK), the kind of the naming service, and the URL or IOR string for the naming service. For information on obtaining this information, see Starting the Naming Service Browser.
A java source file named IDL_interface_nameClient is generated. For example, if you specified hello.idl, the wizard creates helloClient.java.
See also | |
---|---|
Generating IDL Files
Generating Client-Side Files Using the CORBA Template The Interface Repository Browser Completing Generated Files |