Programming for the WWW
Fall 2003

CIMS CS Department

Now taking what you've already ready written do the following:

Create a TCP socket based Inventory server that supports calculating the tax on a PO. This remote server should be called:


it should implement the following function: 
       sent a double it should multiply it by .0825 and return a double via a TCP socket

Your existing application should have a button added to the UI that adds up the cost of all books selected, calls this service via TCP and gets the result and displays the tax due on the books. It should add that with the subtotal and display the total. It should save these in the PO file also.

No error checking is required. Just a simple TCP initiator and TCP acceptor set of applications.

Via RMI create a server that is the Inventory object. Thus, instead of locally invoking the Inventory object it should be invoked remotely. You need to create a InventoryImpl and InventoryRemote. Create stubs and skeletons. Register it with rmiregistry in the main of your InventoryImpl class.


 Copyright Poelman & Associates, Inc. (c) 2003 
For problems or questions regarding this web contact [ClassWebEmail].
Last updated: 10/11/03.