Presentation is loading. Please wait.

Presentation is loading. Please wait.

Distributed ATM Smita Hiremath CSC 8530. Topic Description ATM software has 3 components: Client Server Database.

Similar presentations


Presentation on theme: "Distributed ATM Smita Hiremath CSC 8530. Topic Description ATM software has 3 components: Client Server Database."— Presentation transcript:

1 Distributed ATM Smita Hiremath CSC 8530

2 Topic Description ATM software has 3 components: Client Server Database

3 Activity Diagram

4 Steps for Developing an RMI System 1. Define the remote interface  Between client and server object 2. Develop the remote object by implementing the remote interface  Simple unicast Remote Object  must bind its name to the registry  java.rmi.Naming class 3.Develop the client program  lookup the name of the server in the registry  server name is specified as URL in the form  rmi://host:port/name

5 Steps for Developing an RMI System 4. Compile the Java source files 5. Generate the stubs  rmic ATMServerImpl 6. Start the RMI registry Under Windows  start rmiregistry

6 Cont… 7. Start the remote server objects  java –Djava.security.policy=ATM.policy ATMServerImpl 8. Run the client  java -Djava.security.policy=ATM.policy ATMClient

7 Interface 1. public String Authenticate (String Acct_No, String Pin_No) throws java.rmi.RemoteException 2. public String Balance_Enquiry (String Session_id) throws java.rmi.RemoteException 3. public String Withdrawal (String Amt) throws java.rmi.RemoteException 4. public void Terminate ( String Session_id) throws java.rmi.Remote.Exception

8 Database Login_Info Cutomer_Info Balance_Info Withdrawal_History Session_Info ACCT_NOFNAMEMNAMELNAMESSNDOBADDRESSCITYSTATEZIPPHONE ACCT_NOPIN_NO ACCT_NOBALANCE ACCT_NOTRANS_DATETIMEAMOUNT SESSION_IDACCT_NOLOGIN_DATETIMELOGOUT_DATETIME

9 Session Id  Generates a unique session ID  Uses UID class in java  Uses 3 primitive values  Uniquely identifies the VM  Time - in millisec in comparison to UTC  Count – that is maintained in the VM for every UID generated

10 Problem Faced  Unix SunOS system on Cezanne machine in CSC department  The version of operating system on this machine was SunOS 5.7, Java version was 1.2 and database was Oracle8i  Issue – server side RMI getting hung at rebind call  Installing newer version of Java 1.5

11 Screen shot

12 Screen Shot

13 Screen shot


Download ppt "Distributed ATM Smita Hiremath CSC 8530. Topic Description ATM software has 3 components: Client Server Database."

Similar presentations


Ads by Google