March 2018
Intermediate to advanced
310 pages
7h 10m
English
You are able to modify the configuration by specifying system properties. Let's return to our catalog-service. As you saw in the catalog-service examples from the last chapter, the JAX-RS application was listening for HTTP requests on port 8080, which is the default configuration. Let's suppose that we want to change that port.
What we have to do is specify the swarm.http.port property during the application execution, as follows:
mvn clean wildfly-swarm:run -Dswarm.http.port=12345
When running the web browser, we can see that, indeed, the port on which the application runs has been changed:

What has just happened here then? ...
Read now
Unlock full access