CORBA

CORBA:

1. Server application:

You have to add the business layer to the Server application (metier package) as showed bellow: Corba server

a. Create the Bourse.idl interface

To use the idl interface, you must do the following.

  • Run idlj -fall -v with Bourse.idl as the argument to produce the stubs for the CORBA object:

                      # idlj -fall -v  Bourse.idl

      This generates a directory bourse that contains .java and .class files.

b. Create BourseImpl that  extends the generated skeleton BoursePOA and implements the methods

c. Create CORBA Server:

2. Client application:

You must copy the Bourse.idl interface in the client application and run # idlj -fall -v  Bourse.idl  to generate the package bourse as showed bellow: Corba client

 Then create the Corba client class:

Run:

  • Start the directory

#start tnameserv

Note: if you are in linux environment, use this command: tnameserv

  • Run the server application
  • Run the Client application

Output:

This is the link to the source code:

Server application https://github.com/MarquiseG/CorbaBourseServer

Client application  https://github.com/MarquiseG/CorbaBourseClient

 

Add a comment