CORBA
Project
Java Documentation
This
illustrates CORBA two technique to implement the Server i.e.: Tie Approach and the
Implementation approach.
Description : Here we use N number of counters to implement tie and
implementation approach of CORBA. Counter is taken as data structure of ORBIX(version 3.0
for Java) as sequence or array of long datatype of size N. For each counter ,there are the
operation to initialize the counter to a given value k, Increment the value of the counter
by value m, retrieve the values for each counter and dump the counter (using Holder
classes for the array and sequence).This is totally menu driven. Application will launch
the server by itself and you can perform various operation on it. Exception handling is
used for incorrect clients. It is implemented by using both tie and implementation
approach.
Implementation Details
Package
Counter
Counter.CountPackage(Exception)
Design Issues and Better Designs:
- I used a menu for the Client so that when ever you want to dump the data, you can dump
it.
- I used one implementation of the server which can either use Tie approach or
Implementation Approach
- I used the menu item to increment the counter (every counter) by a particular
value(entered by the user) instead of just multiplying it by 2*Index value.
Please set the class path in the Configuration of Orbix and Java as desired.
How to start the Server
- Javac *.java (Compile all the classes).
- putit -v SCount Counter.ServerCount (Registering the Server)
- java Counter.ServerCount (stating the Server using Implementation approach)
OR
Java Counter.ServerCount Tie(stating the Server using Tie approach )
How to start the Client Menu
- java Counter.ClientCount
|