Page #496 (Review Questions)

 
[Page 1266 ( continued )]

Programming Exercises

Section 36.3 Developing RMI Applications

36.1* ( Limiting the number of clients ) Modify the example in §36.3.1, "Example: Retrieving Student Scores from an RMI Server," to limit the number of concurrent clients to ten.
36.2* ( Computing loan ) Rewrite Exercise 25.3 using RMI. You need to define a remote interface for computing monthly payment and total payment.

[Page 1267]
36.3** ( Web visit count ) Rewrite Exercise 25.4 using RMI. You need to define a remote interface for obtaining and increasing the count.
36.4** ( Displaying and adding addresses ) Rewrite Exercise 34.6 using RMI. You need to define a remote interface for adding addresses and retrieving address information.

Section 36.5 Developing Three- Tier Applications Using RMI

36.5** ( Address in a database table ) Rewrite Exercise 36.4. Assume that address is stored in a table.
36.6** ( Three-tier application ) Use the three-tier approach to modify Exercise 32.1, as follows :
  • Create an applet client to manipulate student information, as shown in Figure 32.24.

  • Create a remote object interface with methods for retrieving, inserting, and updating student information, and an object implementation for the interface.

Section 36.6 RMI Callbacks

36.7** ( Improving TicTacToe ) Modify the TicTacToe example in §36.6, "RMI Callbacks," as follows:
  • Allow a client to connect to the server as an observer to watch the game.

  • Rewrite the Cell class as a non-inner class.

36.8** ( Chat ) Rewrite Exercise 25.10 using RMI. You need to define a remote interface for sending and receiving a line.
[Page 1268]
 


Introduction to Java Programming-Comprehensive Version
Introduction to Java Programming-Comprehensive Version (6th Edition)
ISBN: B000ONFLUM
EAN: N/A
Year: 2004
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net