Like to make a simple client server technology program, a bankaccount?
843790May 7 2007 — edited May 8 2007Hello
does someone like to make a simple client server technology program, a bankaccount?
Implement a RMI-based client/server technology, where a client can look up his balance (from his bankaccount) on a remote server, when he enters his accountnumber. To reach his balance, he has to enter his accountnumber and a password. When the password is incorrect, his balance doesn�t show off. He also can change his password. The server reads a list of data from a textfile (data.txt). In this file, there�s on each line: accountnumer, password, name and balance.
Use a helping/supporting class Client with four instance variables: accountnumber, password, name and balance.
The signatures from the remote calls you can use, looks like:
public boolean checkPasswrd(String accountnumber, String passw)
public Client getClient(String accountnumber)
public void updatePassword(Client name/accountholder)
where the Client-object of this last method contains the new password.
The remote update must be synchronized.
Use a StringTokenizer or Stringmethod split, to split a string in substring (java.sun.com/j2se/1.4.2/docs/api)
The program doesn�t have a GUI and runs from a command line.
My thanks are big!!
Thanks in advance
Greetings Bastiaan.
p.s. the data.txt-file looks like this:
168840,Rene van Tiel,45386.56,37rg89
176666,Ger Achterhoek,178.25,03dk28
205036,Anneke Wiltens,-35.95,18oa94
245796,Jef Boon,10386.00,93df27
306968,Mostafa Hamzoui,500328.45,52kw94
307879,Mathilde Thijssen,8734.83,11js72
380888,Rik van der Boom,12.45,23hj45
386671,Henk Wolters,0.00,99rt77
402581,Aukje van Hemel,-75.10,17mm45
406353,Piet Jansveld,100.23,wt29xz