CORBA Server Wizard. That is a main feature of ORB Studio 7 and most useful, powerful tool. CORBA Server Wizard supports all type of object adaptors mentioned in OMG CORBA specification. And it can generate *complete* codes, it means you can just go run them without any modification for those.
Here we are developping most popular server objets based on Active Object Map. In Package Explorer, choose "MyFirstCORBA" project and open CORBA Server Wizard as below.

Choose [Active object map] leaf in CORBA Wizard node to open CORBA Server Wizard.

This screen of Server Wizard (Wizard page 1/2) allow you to setup information in server code generation.
Choose a name of IDL file that put in already exist project "MyFirstCORBA", from drop down list. Next choose Interface as well. Here choose "MyServer.MyService" as interface. Next enter name into both Package and Server(Servant) classname fields. Here enter "MyServiceServerImpl" as Server classname.

Click [Next] button.
In Server Implementation Wizard 2/2 page, you can configure two options, whether or not create Server class in addition to Servant class and use TIE approach.
Here just give a check in Create server class field then Clieck [Next] button.

Now two files are generated in your project and a servant class file is opened as below.
- MyServiceServerImpl.java
This is, so-called, servant class.
- MyServer_aom.java
Server class, this is optional.
And also Eclipse reports a error against generated servant class, "MyServiceServerImpl.java". Don't mind about this. Eclipse complain that the servant class does not include any corresponding operation methods defined in the IDL files.
Ok, let Eclipse implement them automatically.

We can take advantage of Code Assistant capability of Eclipse. Place mouse pointer in red X mark appeared in right side in Java Editor and click the point to open an Assist menu.
The code assistant menu appears as below and choose "Add unimplemented methods".

Eclipse will assist you and make the declaration of "operation1(String msg)" into servant class as below.

Just implement your business logic. Here our business logic is that display a message got from client on the console.

|