From P2P to Web Services and Grids: Peers in a Client/Server World

In this theme, we look at some of the specifics of programming and deploying applications using distributed-object (Chapter 11), P2P (Chapter 12) and Web services (Chapter 13) middleware. Together, these represent a broad section of the domain as most distributed systems are constructed within one of these areas. Even Grid computing has adopted a Web-services based environment for exposing its functionality, which we'll see in the next theme, " From Web Services to Future Grids."
In this chapter, two specific examples illustrate the use of RMI and Jini. The focus of this chapter is not to create complicated remote Java services and therefore give a lesson in Java programming, but rather it is to provide the reader with the core framework and components needed in order to run simple RMI and Jini services. Providing complicated services at this stage simply clouds this issue of understanding the fundamentals of running remote services.
Therefore, the source is very concise but it gives all the necessary code needed in order to run and describe remote RMI and Jini services. Such code can easily be extended to provide as complicated a service as the reader desires. The complete set of examples for this chapter and others can be found at the following Web site:
http://www.cleverfish.co.uk/peerbook/
On this Web site, there is a complete set of batch files that enable the...