Simple corba program, Programming Languages

Assignment Help:

You are working in charge of a group of programmers at a software company. Your task is to assess and research CORBA and to produce a report to be given to the programmers detailing your technical recommendations regarding how and when CORBA should be used.  As part of this, you will need to develop the CORBA programs below.  You will not need to demonstrate the programs, but you will still need to develop them in order to gain the experience based on which you will write your report.

1. Follow the instructions on the attached "Getting Started with CORBA" sheet to compile and run a simple CORBA program.

2. Modify the program you have been provided with to create a system that works as follows:

a. The server stores a single numeric value (called the "counter"), which starts at 0.

b. The server offers two methods: "add" and "get". 

c. The "add" method takes an integer and adds it to the counter.

d. The "get" method returns the current value of the counter.

e. The client should give the user the option of adding a value (of their choice) to the counter, or getting the value of the counter and having it printed on the screen.

You should test this program by running it with several clients connected to the server at once.  As you work, make a log of the work that you do on this program (including failed attempts); it will be useful for writing your report.

3. Modify your code so that if an attempt is made to add a number that would take the counter higher than 20, an error is returned to the client via a CORBA exception.  You will need to investigate for yourself the method by which exceptions are dealt with in CORBA.

4. CORBA offers a method by which "persistent data", such as the counter in the program above, can be stored so that it is maintained even if the server object detaches from the ORB. Investigate this method and find out how to use it.  You do not need to implement it in your program but doing so may help your understanding.


Related Discussions:- Simple corba program

Program for operate the rolodex, Program for Operate the Rolodex Rolod...

Program for Operate the Rolodex Rolodex is a rotating file, usually used to record business contact information. Cards are inserted in alphabetic order by name. You operate th

Develop an application for spacerocks game, Extend the SpaceRocks game and ...

Extend the SpaceRocks game and provide a warp feature which allows the ship to jump to a random location to escape a rock. The warp feature is only activated once the shields have

Robot factory game, A deterministic finite automaton (DFA) is an abstract m...

A deterministic finite automaton (DFA) is an abstract machine that reads input from a serial (nonreversible) stream and changes between a finite number of  states according to the

Program for a simple search engine, Introduction A search engine (like ...

Introduction A search engine (like Google) has three main components: a crawler that finds and stores copies of files on the web, an indexer that creates a data structure that

Prims algorithm for minimum spanning tree, Implement the Prim's algorithm w...

Implement the Prim's algorithm with array data structure as described in slide 12 of the file 04mst.ppt. Your program should have a runtime complexity of O(n2) and should be as eff

Explain the post and get methods, Question: (a)  An HTML file "decor.ht...

Question: (a)  An HTML file "decor.html" uses an external Cascading Style Sheet file name  "nicedesign.css". Users are viewing the Web page making use of different kinds of  br

Matlab, want to do an image-mean. but image is and mean is so an error ...

want to do an image-mean. but image is and mean is so an error showing Error using ==> minus Number of array dimensions must match for binary array op. wat to do?

Maze game, The Maze Game from Laboratory 7 loads its maze directly in the p...

The Maze Game from Laboratory 7 loads its maze directly in the program's code. This should be avoided as it requires the program to be recreated if the maze needs to be changed. In

Define reasons for using functions, Define Reasons for using Functions? ...

Define Reasons for using Functions? 1. Evade rewriting the same code over and over. 2. It is simpler to write programs and keep track of what they are doing. Codes are able t

JUnit test, hi, can you help me with testing java classes I have wrote usin...

hi, can you help me with testing java classes I have wrote using java and jsp and servlet in eclipse ? I want to use JUnit for testing

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd