Java Client-Server application which transfer objects of clients to server and after that to Postgres DB.
- Java
- PostrgreSQL
Firstly to launch class Main.java in Server part. Than to launch class Main.java in Client part
Connection is established through JDBC. Postgre database initialized with some sample user
ID | NAME | BILL |
---|---|---|
1 | Mike | 15 |
Interaction between server and client is conducted through the console:
Server side:
-------INFO-------
Server is deployed.
-------INFO-------
Connection with DataBase is established.
-------INFO-------
Waiting for client connection...
-------INFO-------
Client committed connection
Client side:
Insert ID:
1
Insert NAME:
Mike
Insert BILL:
15
Server side:
Got object: |Id - 1| |Name - Mike| |Bill - 15|
Client side:
-------INFO from Server-------
Server got instance