Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.1 KB

File metadata and controls

49 lines (35 loc) · 1.1 KB

microservice-session

Provided using WildFly Swarm

Build and run the service

cd microservice-session
mvn clean package
java -jar target/microservice-session-swarm.jar [-D<OPTION>]

Address & Port Bindings

Table 1. Session Service Options
Flag Description Default

swarm.bind.address=<address>

Interface to bind servers

0.0.0.0

swarm.http.port=<port>

Sets the port for the HTTP server

8080

swarm.port.offset=<offset>

Sets a global port adjustment

0

For example, if you want to change the HTTP port to 5050, run the application like this:

java -jar target/microservice-session-swarm.jar -Dswarm.http.port=5050

Click on this link to verify that everything ran fine: http://localhost:5050/sessions

For a full set of configuration options please see the Wildfly Swarm Userguide

Running on Liberty

Alternatively you can run this service on liberty by doing:

cd microservice-session
mvn -Pliberty package
java -jar target/microservice-session-liberty.jar