Abstract:
Most modern network programming is based on a client/server model. The Remote method Invocation API lets java objects on different hosts communicate with each other. A remote object lives on a server. In RMI application, Resources may be accessed by many clients concurrently and managed by server. Concurrency control is atomic execution of transaction on shared resources by controlling the interleaving of concurrent accesses. This paper implements a light weight Client/Server application for multiple clients by using java RMI mechanism. The system controls the concurrency based on 2-Phase Locking Algorithm and multi-threading technology. To show the experimental results, it uses the fashion shop as an application which has TRI, Pim, STEP, Giorano and Adidas transactions. Customers can buy the same type (such as TRI) simultaneously from different sites.