Software and tools used:
- Java 8
- Maven 3.5
- Spring boot 1.5.7
- Embeded Tomcat
- REST API
- IntelliJ IDE
- Active MQ
- MySQL DB
Assumptions:
-
Java 8 and maven 3.5 installed on the machine
-
Active MQ service is running
-
MySQL DB installed and service is running
-
Create 'test' schema in MySql DB
-
Run following SQL script:
CREATE TABLE test
.apimsg
(
id
INT NOT NULL AUTO_INCREMENT,
i1
INT NULL,
i2
INT NULL,
gcd
INT NULL,
PRIMARY KEY (id
));
- Build the project using 'mvn clean install' command
- Start Active MQ service
- Copy WAR and deploy to a server
Test: REST API http://localhost:8080/apiMsg/push?i1=4&i2=20 http://localhost:8080/apiMsg/list
SOAP WS http://localhost:8080/soapapi/ws/gcd.wsdl
Username: foo Password: bar