March 2018
Intermediate to advanced
310 pages
7h 10m
English
Each Swarm service contains the main class which is responsible for creating and configuring a runtime for the service and running service code on it. Swarm creates the default implementation of the main class (in fact, the default class was used in all the examples till now), but you are able to provide your own implementation of the Main class if you want to modify the default behavior. An example of such modification may be providing an additional configuration.
Let's return to the catalog-service. Let's recall its current operation: we created a jaxrs resource and injected the service providing the invitation message using CDI. Now, let's modify this example to provide our own main class.
Read now
Unlock full access