Font Size: a A A

Research On JAVA Remote Invocation Framework Based Dynamic Proxy

Posted on:2011-04-10Degree:MasterType:Thesis
Country:ChinaCandidate:Y HanFull Text:PDF
GTID:2178360308951224Subject:Software engineering
Abstract/Summary:PDF Full Text Request
The Distributed System is the system in which various computers as components mutual cooperate and invoke together to accomplish specific task by transferring message. Through application of Distributed system, a?great?amount?of computers may accomplish more complicated application on the situation of reasonable division of labor. With the advanced of networks techniques and improvement of computer application, The Distributed Systems become more and more widely used. It is one of the current research hotspot that framework how to makes Distributed System more flexible, simplified and efficient.The remote invoking in Java platform usually is implemented by several methods, relatively efficient but not conveniently used and extended method, RMI (Remote Method Invocation), easily extended but heavyweight application, EJB (Enterprise Java Bean), more adaptable but somewhat inefficient, Web Service,in addition to lightweight frameworks have merits with simplicity and easiness, Hessian/Burlap. In this background, this article researches and brings up a lightweight Java remote invoking framework which is named Summer, besides applies it in practical project. In the Summer framework, RMI is a communication basis of remote call, comparing with other frameworks based on Http protocol, the communication method of RMI based on Socket maintain priority of communication efficient. In order to solve inconvenient of RMI invoking and extending, the framework makes use of Java Dynamic Proxy technique to eliminate dependency of remote business interface to RMI framework, the framework users need not implement RMI remote interfaces with remote invoking business interfaces defined by RMI rules.The framework client provides business service for framework users by proxy objects which implement business interfaces. Then, proxy objects call underlying agreement of RMI remote interfaces to communicate with framework server ends. Users may easily equip from common java service classes to remote object service classes that prepare for remote invoking by the method, which encapsulate the framework communication kernel; this method well resolves dependency from invoker to framework. Meanwhile, due to thinking and design according to AOP (Aspect Oriented Programming) getting more and more applied, in order to provide cross section programming which aims at business services, the Summer framework also applies Java Dynamic Proxy techniques which can conveniently set intercept services for remote invoking. Business objects enhance original business interface via method of increasing interceptors for business means, and these objects need not any variations because of interceptors.Different with the RMI, a Summer framework no longer needs business service business interfaces providing remote service implement remote interfaces, it also simplifies with demanded complicated process that construct connecting of RMI and discovering RMI services; Comparing with the Web Service, communication methods based on RMI decrease workload of configuration with needed remote services, Moreover, it also makes Summer framework enjoy better communication efficiency comparing with Web Service based on Http and Hessian/Burlap frameworks.Presently, the Summer framework has practical application in a music recommendation software project of music website, in the application, we make use of the framework to accomplish remote invoke from network web server to music recommendation server. Practices manifest the framework can basically satisfy with demands of music website for lightweight remote call framework.
Keywords/Search Tags:remote invoking, distributed system, dynamic proxy, security, compatibility
PDF Full Text Request
Related items