Getting Started with Hammock

Hammock is a highly opinionated MicroServices framework that gives you a large amount of flexibility when building your applications.

Hammock supports 2 different CDI implementations, 3 different JAX-RS implementations, 3 different servlet containers.

Adding Dependencies

The easiest way to get started is to use one of the prepackaged MicroProfile distributions


You’ll also want to determine how you want to package your application. Capsule is the easiest, it gives nice JAR isolation and doesn’t introduce the problems with the Maven Shade Plugin.


Once you have your build going, its simply a matter of adding your first REST service

public class HelloService {
    public String sayHello() {
        return "Hello, World!";

Run your application, open http://localhost:8080/hello and you’ll see your endpoint working.

Other Modules

A full list of modules can be found on the [wiki](

Looking for more?

Check out the Core Concepts menu in the top right corner to discover more about Hammock.