Distributed ticket reservation system, JAVA Programming

Assignment Help:

In this programming assignment, you are going to implement the simple distributed ticket reservation system (DTRS) from Assignment 1 in CORBA using Java IDL. In addition to the three operations (namely, reserve, cancel, and check) defined in Assignment 1, a modified distributed ticket reservation system in this assignment also has the following operation.

exchange(customerID, reservedShowID, reservedTickets, desiredShowID, desiredTickets):

Exchange reservedTickets for the show with reservedShowID with desiredTicktes for the show with desiredShowID for the customer with customerID, if possible. A client invokes this operation at the server managing the show with reservedShowID. The DTRS executing this operation first checks whether the customer with customerID has already reserved at least reservedTickets for the show with  reservedShowID. Then it checks if at least desiredTickets are available for the show with desiredShowID. If both conditions are satisfied, then the DTRS performs the exchange by reserving desiredTickets for the show with desiredShowID and cancelling reservedTickets for theshow with reservedShowID. Note that this reserving and cancelling should be done atomically; that is, both should succeed or both should fail.

Note that in order to perform an exchange operation, potentially two DTRSs need to communicate between themselves. A client sends an exchange operation to the DTRS managing the show with reservedShowID which performs this operation by (i) sending an exchange  message to the DTRS managing the show with desiredShowID if it currently has at least reservedTickets for the show with reservedShowID, (ii) upon receiving this exchange message, the other DTRS replies a canExchange message, if it currently has at leastdesiredTickets for the show with desiredShowID, after updating its information and (iii) upon receiving the canExchange reply, the DTRS which initiated this exchange properly updates its information. Obviously, all these operations must be performed atomically (in an all-or-none fashion) without any interference from other operations. Furthermore, for performance reasons, implement all these communication among DTRSs for the exchange operation using the UDP/IP datagram protocol.

In this assignment you are going to develop this application in CORBA using Java IDL.

Specifically, do the following.

Write the Java IDL interface definition for the modified DTRS with all the four specified operations.

Implement the modified DTRS. You should design a server that maximizes concurrency. In other words, use proper synchronization that allows multiple customers reserve/manage/exchange for the same or different shows at the same time.

Test your application by running multiple clients with multiple servers. Your test cases should check correct concurrent access of shared data, and the atomicity of exchange operations.


Related Discussions:- Distributed ticket reservation system

Define array, Define Array ? Indexed collections of variable of similar...

Define Array ? Indexed collections of variable of similar data types or we can say a Set of organized variables of similar type.

What is best algorithm, What is best algorithm? Greedy algorithm is the...

What is best algorithm? Greedy algorithm is the best algorithm as it is n algorithm in which always takes the best immediate, or local solution although searching an answer.

Online doctor, can you explain me the er diagram for the online doctor syst...

can you explain me the er diagram for the online doctor system

Build KNN Classifier in Java, Can you help? this assignment I will need to ...

Can you help? this assignment I will need to build a very straightforward and fully functional machine learning classifier with the K-Nearest Neighbor (KNN) algorithm. The KNN mode

Explain final fields, Explain final fields ? You may also declare field...

Explain final fields ? You may also declare fields to be final. This is not the similar thing as declaring a method or class to be final. While a field is declared final, it is

Javaserver faces event and listener model, What is JavaServer Faces event a...

What is JavaServer Faces event and listener model? Ans) A mechanism for verifying how events emitted by JavaServer Faces UI components are handled. This model is based on the Ja

Explain subclasses and polymorphism, Explain Subclasses and Polymorphism ? ...

Explain Subclasses and Polymorphism ? Car and Motorcycle are subclasses of MotorVehicle. If you instantiate a Car or a Motorcycle along with new, you can use in which object a

Demonstrate a minimal server and client program, This exercise will give yo...

This exercise will give you some introductory exposure to network programming with sockets. Your task is to demonstrate a minimal server program and client program that can send on

Video course on computer security needed, Video course on computer security...

Video course on computer security needed Project Description: We want a video course on computer security. Just like the way lynda provides. Skills required are Computer S

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