O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Docker for Java Developers

Book Description

The established way to deploy Java applications requires you to install the Java Development Kit (JDK), plus an application server, web server, database, and other components in a data center, whether on-premise or in the cloud. Though this process works well enough, Docker containers can save you many headaches when it comes to packaging, deploying, and scaling your applications.

In this O’Reilly report, author Arun Gupta explains Docker’s basic concepts and the commonly used orchestration frameworks around them. You’ll learn how to achieve faster startup and deployments on both Windows, Mac OS X, and Linux, and understand how these containers improve portability across machines and reduce the impedance mismatch between development, testing, and production environments.

Update: Coming in Fall 2016, this report will include a chapter that explains how to load balance multiple Java application servers running as Docker containers. Learn how to provide low latency to the client by caching responses and enable health monitoring on your applications.

  • Get up to speed on Docker basics, including its image format and toolset for building, shipping, and running containers
  • Build and run your first Docker container by deploying a sample Java EE application with Docker Compose and Docker Swarm
  • Manage Docker images and containers with IDEs such as NetBeans, Eclipse, and IntelliJ IDEA
  • Use a Maven plugin to create a Docker image and start a container
  • Ensure that user requests are appropriately distributed among servers through weighted load balancing