Are you planning to use containers and microservices together? Bruno Souza and Elder Moraes introduce those topics in their article "Step-by-Step High Availability with Docker and Java EE". Using a simple example, they show how you can use Java EE with Docker as a powerful way to develop and deploy portable, scalable, highly available services.
Souza and Moraes use the following steps to illustrate how easily and quickly you can use Docker containers with a Java EE application
1. Choose a Java EE application to run on an Apache TomEE server.
2. Create a software appliance.
3. Add a highly available configuration.
4. Run the application on immutable servers.
5. Add a load balancer.
Then they describe additional benefits you can get by using Docker containers to run Java EE applications, such as automating a build pipeline, automating tests, and performing cloud migration. To learn more, read the article