A multithreaded stock exchange server implemented in Java and PostgreSQL.
Warning: to run the unit tests, create a PostgreSQL server at localhost on port 5432
, a user postgres
with password passw0rd
, and a database named ece568_hw4
.
- install docker
sudo apt install -y docker docker-compose
- build and deploy the application stack
sudo docker-compose build
sudo docker-compose up -d
- create a Telnet connection to the server, check if the connection is successful. A successful connection would display a blank screen.
telnet <hostname> 12345
- type in the request XML as a single string and send to the server, e.g.
123<?xml version="1.0" encoding="ISO-8859-1"?><create><account id="12714" balance="98349213"/></create>
- check if the server responds with an expected response, e.g.
<results><created balance="9.8349213E7" id="12714"/></results>