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

Java source code classes and objects, Design and implement a stringed music...

Design and implement a stringed musical instrument class using the following guidelines: a. Data fields for your instrument should include number of strings, an array of stri

Write the html code to bind this xml data, Question: (a) (i) Describe w...

Question: (a) (i) Describe what an XML Data Island is and outline the restrictions of using a Data Island. (ii) The following XML file book.xml is used to keep track of a l

Shell script to print right traingle, Normal 0 false false ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Write a program to use a robot to move, Write a program to use a robot to m...

Write a program to use a robot to move the stack of blocks from a source location to a target location, based. Movement of robot arms, picking and dropping, can be controlled usi

Program for average grades for 10 students, Assume that you are a college p...

Assume that you are a college professor needing to average grades for 10 students. Write a program that asks for each student's name and grade. Print the list on-screen with each s

What is the purpose of a hashtable, Question: (a) How do you implement...

Question: (a) How do you implement the following in ASP.NET: (i) Server-side Comments (ii) Server-side Include Directives. (b) What is the purpose of a HashTable? (

Explain what the return value of fork-shell programming, Simple Shell ...

Simple Shell In this LAB, you will explore and extend a simple Unix shell interpreter. In doing so, you will learn the basics of system calls for creating and managing process

Hack winrar password, how to make a program using vb?seriously i don''t kno...

how to make a program using vb?seriously i don''t know

Controlling stepper motor through rtlinux, In this project, we have measure...

In this project, we have measured and compared the performance given by RTLinux, which is real time system with non-real time Linux operating system. Also, we have measured the

Write a program for random number generator, * Comments in your code are re...

* Comments in your code are required * Main Program Operation:  # Your program should first prompt the user for an integer to seed the random number Generator. "Enter an seed

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