Generate CORBA Server Wizard

IMPORTANT: You must build the project before this wizard will work correctly.

To open this wizard, choose File|New, click the VisiBroker tab of the Object Gallery, then double-click the CORBA Server icon. For this option to be available, you must first select a Java implementation file in the Navigation pane. If a file extends from a CORBA skeleton, it is an implementation. You can generate the necessary stubs and skeletons by right-clicking on a CORBA interface file in the Navigation pane, selecting Java Source Properties, then checking the Generate IIOP Interface option. Remember to build the project prior to generating the server.

The Generate CORBA Server Wizard takes a class that is a CORBA object and makes it a basic server. By default, the file is named MyCorbaServerClass1.java, and will be a bare-bones server. A CORBA server will simply instantiate the implementation and tell the BOA (Basic Object Adapter) that it is ready. Since the implementation is also a skeleton, the CORBA Object will be able to respond to CORBA requests. The BOA’s main purpose is to allow an object server to interact with the ORB (Object Request Broker). A server process uses the BOA to tell the ORB when an object is ready to perform operations.

For more information on creating a CORBA application in JBuilder, see Overview: creating a CORBA application in JBuilder, in the Creating Distributed Applications section of the Developer's Guide.

Select CORBA Class

Select the Java file and class that you wish to use to generate a CORBA server.

Java file

Provides a list of Java files that extend a skeleton. The wizard will scan through the project to provide a list of all files that meet this criteria.

If the project does not include any files that meet this criteria, the message <<Files in project do not support CORBA>> will appear in this list box. If this appears, make sure that you have generated the IIOP interfaces (by right-clicking on the Java file, and selecting Java Source Properties), and run Build|Make Project.

IMPORTANT: You must build the project before this wizard will work correctly.

In the jbuilder/samples/visibroker/samples/ subdirectories of your JBuilder installation are several sample CORBA applications. In these samples, file names that contain Server (such as Server.java in the Bank sample application) or Impl (such as AccountImpl.java in the Bank sample application) are acceptable choices for this field.

Class

Provides a list of classes that are implementation classes the Java file supports. The wizard will scan through the project to provide a list of all classes that meet this criteria.

If none are found, the message <<Interfaces do not support CORBA>> will appear in this list box. Make sure that the project has been built so that the wizard can find the proper interfaces.

Server Class

This group of list boxes determines where the newly created server will reside.

Package

Displays the package name derived from the implementation file. To change this package, click in the field and enter the new package name.

Class Name

Displays the default name assigned to the server class, MyCORBAServerClass1. To change this class name, click in the field and enter the new name.

File Name

Displays the full path and .java file name for the server class. The file path and name are constructed from the source path node under which the project exists (as provided in File|Project Properties), plus the contents of the Package and Class fields. This field is not editable. The file will be created with the actual location and name indicated here.

OK

Generates the CORBA server in location specified in the Server Class options.

Cancel

Exits the wizard and does not create the CORBA server.

Help

Displays this Help topic.