May 7, 2009
By Islam Alsadi
Project description
Introduction
Nowadays we hear a lot about Distributed Banking system and almost all banks provide their customers with this facility. Distributed Banking system is so convenient that all banks are investing a lot of money in developing a good Distributed Banking system application.
So, we thought of developing such an application that would give us an
opportunity to study the latest trends in the market. We developed a simple Distributed Banking system software which lets the customers of a bank to log on onto their account and to verify balances.
This project illustrate clearly the benefits of distributed system and its tools especially RMI, We use it in calling methods remotely which provide high speed and little processing at client side which made it wide spread and easy to use.
Project Main Goals:
1- The ultimate goal of this project is to use distributed objects to implement a banking system.
2- To be familiar with RMI.
3- Use your best effort to realize some function in real world in software way.
This project is simulation for real banking system that use ATM (Automated Teller Machine) and the bank employee
We use MS_Access database because it is more easier and we are familiar with it more than more than other database kinds.
Remote Method Invocation (RMI) is an object-oriented implementation of the Remote Procedure Call model. It is an API for Java programs only.
Project description in details:
The server program will be running all the time. Whenever the customer wants to check his account balance or (withdraw, Deposit, transfer ) money he can just logon. By logging on the customer can view his balances.
When one client logs on to the server in order to maintain security and to
avoid deadlock the same customer will not be allowed to logon to the server from another machine. This is done by creating Session Flag.
When the employee logs on to the server he is allowed to make
Modifications , delete and add accounts. That is he can create a new customer. If the account number is already existing then message is sent to the employee that he has to assign new account number. When a new customer is added password will be automatically generated and it will be the account number. The employee has the access to delete and existing customer. He can also make some modifications in the customer’s detail.
If at any point of time the server crashes then customer cannot make any
transactions and the client will be prompted with the message that the
server is crashed and the client is made to exit its operations
The APIs used
In the server side:
Naming.rebind() is used. This is to establish the remote objects name with the rmiregistry.
In the client side:
Naming.lookup() is used. This is used to return the reference for a remote
object.
Steps to execute the program:
1- run batch file called start which contain
path C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin
rmic ATMFactoryImpl
rmic ATMImpl
rmic AccountsFactoryImpl
rmic AccountsImpl
rmic SecurityFactoryImpl
rmic SecurityImpl
start rmiregistry.exe
java -Djava.security.policy=rmipolicy.policy
Steps to run ATM Client:
2- Compile all java files.
3- Execute SecurityFactoryImpl class.
4- Execute ATMFactoryImpl class.
5- Execute ATMFactoryClient class.
Steps to run Employee Client:
6- Compile all java files.
7- Execute SecurityFactoryImpl class.
8- Execute AccountsFactoryImpl class.
9- Execute AccountsFactoryClient class.
DataBase :
Table we use in this project:
1- Bank System:- which contain information about account number and balance and the type of the currency used and authorization.
2- MOVEMENT:- which contain information about balance movement of the accounts.
3- EMPLOYEE: this table contain information about employee.
find more by downloading the source code for the project
Related Posts:
- 3d text objects source code using visual basic
This program show to you how to write 3d text using vb .. it is a simple idea .. you can choose font size and words thikness also you can... - Eject CDROM source code using visual basic
this example is about ejecting CDROM, you can make a button to eject CDROM in your program as same as in this source code. enjoy downloading this example source code... - Telephone Directory source code with visual basic
This example is a Telephone Directory source code with visual basic which shows and turns out the simple database operation like add, update and delete. the database connection to microsoft... - phone address book source code using visual basic
This example is a phone note book which demonstrate the simple database operation like add, update and delete. it connnects to microsoft access to get rows of contacts, the progam... - Encrypt/Decrypt php source files
Hide it is an open source project found on sourceforge.net, it is for encrypt or decrypt php source files to hide this source code from being modified. it includes a... - PHP Flash Connector “Cabron PHP”
Cabron PHP Flash Connector allow you to remote invocation of PHP methods from any Flash movie, without PHP extensions needed to do that. it support Multilanguage and timed deserialization. Note that PHP 4.0.5 or above... - World of Warcraft Private Server Launcher
World of Warcraft Private Server Launcher is a Launcher created for Warcraftmmorpg.com which automatically changes realmlist.wtf file in order to connect to the choosen server , you can launch World of... - how to speen up the windows logoff and shutdown
Here some steps to speen up your windows logoff or shut down process: to do these steps you have to run firstly the batch Regedit as the following: Start>>Run>> Regedit... - Privacy Policy
Privacy Policy for Arabyarea.com At Arabyarea.com, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and... - free download yahoo massenger offline download
Yahoo messenger is one of the most popular chating client softwares.. it has an amazing feature which make it very popular! to download this great chatting client and enjoy.. this...


No responses to "simple Banking system using java (j2se) and RMI source code"
No comments yet.
Leave a comment