Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.28 KB

File metadata and controls

27 lines (20 loc) · 1.28 KB

microservice-schedule

Build and run the service When building the service Payara Microprofile packages both the war file and the microprofile runtime into a single UberJar for convenience.

cd microservice-schedule
mvn clean package
java -jar target\microservice-schedule.jar --port 6060

Port Bindings By default the microservice would bind to port 8080, if this is not available it will bind to the next available port e.g. 8081. Specifying the port using --port as a command line option overrides this.

To verify that the schedule microservice is running, use the following link: http://localhost:6060/schedule/all

To see a full set options run the jar with the --help command line option or see the Payara Micro Documentation for a full list of options.

Running on Liberty

Alternatively you can run this service on liberty by doing:

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