Generating Server-Side Files Using the CORBA Template

You can generate server-side files with the CORBA template, ServerMain. Before creating the file, make sure the IDE is set up for the ORB product you want your CORBA programs to work with. You should set the Server Binding property for the ORB you are using so that the template generates the correct code templates in the server file.

To set the binding method:

  1. Select Project Settings.
  2. Expand the CORBA Settings node and select the node you are using.
  3. Double-click the value for the Server Binding property and select the binding method of choice.

    While the property sheet is open, set the binding method for the Server by changing the Client Binding property in the same way.

To create a server file using the CORBA template:

  1. From the main window, choose File New to open the Template Chooser.
  2. Expand the CORBA template node and select the ServerMain template and click Next.
  3. Specify a name for your client file and the package in which it should be generated and click Next.
  4. Click Finish.

    The CORBA module creates a CORBA server source file, named Filename.java.

    In addition to generating server program source code, you need to copy the IDL on which your server is based to the server program's package.

See also
Generating Server-Side Files With the CORBA Wizard
Completing Server-Side Files

Legal Notices