The goal of this mini project is to master the RMI technology and develop distributed application client/server for bank account management.
Project Name : << CUSTUMER-SERVER APPLICATION FOR MANAGING BANK ACCOUNTS >>
Author : Gadnyz
Date : June 26, 2020
The goal of this mini project is to master the RMI technology and develop an application for it. distributed client/server for bank account management.
The application is subdivided into two parts, the client part and the server one
* IDE : Netbeans 8.2
* java version "1.8.0_91"
* Database : Postegres 12
-
Download POSTEGRES: https://www.postgresql.org/download/
-
Launch pgAdmin4.exe
-
Import the banque.sql in pgAdmin4 > Create first a the database with the name banque. after copy the sql script in banque.sql run it in pgadmin4
-
Download of Java DataBase Connectivity (JDBC) postegres : https://jdbc.postgresql.org/download.html
The JDBC must match with the version of your installed Java
-
For >= JAVA 8 download PostgreSQL JDBC 4.2 Driver, 42.2.14
-
For JAVA 7 download PostgreSQL JDBC 4.1 Driver, 42.2.14.jre7
-
For JAVA 6 download PostgreSQL JDBC 4.0 Driver, 42.2.14.jre6
-
* In case of using on two PC > You must connect the both hosts on the same access point (you can use Smartphone to create the access point)
* Run the server > Put the server IP in the Network, the Database access (login , password and server port) Default port is 5432
- cmd > cd ..\Serveur\src\rmi
- cmd > ..\Serveur\src\rmi>javac *.java
- cmd > ..\Serveur\src\rmi> cd ..
- cmd > ..\Serveur\src> start rmiregistry -J-Djava.security.policy=fichier.policy
- cmd > ..\Serveur\src>java rmi.RMIServeur
[replace `..` by the server project absolute path]
Now the server start
* Run the client > Give server IP, rmi access port and the current account numRef
- cmd > cd ..\client\src\rmi
- cmd > ..\client\src\rmi>javac *.java
- cmd > ..\client\src\rmi> cd ..
- cmd > ..\client\src> java rmi.Client
[replace `..` by the client project absolute path]
Now the client start