Minijax 0.5.1

Minijax

Fast, simple, lightweight Java EE

Minijax is a Java library for quickly creating production-ready Java EE web applications.

Getting Started

pom.xml

<dependency>
  <groupId>org.minijax</groupId>
  <artifactId>minijax-undertow</artifactId>
  <version>0.5.1</version>
</dependency>

Hello.java

import javax.ws.rs.*;

@Path("/")
public class Hello {

  @GET
  public static String hello() {
      return "Hello world!";
  }

  public static void main(String[] args) {
      new org.minijax.Minijax()
              .register(Hello.class)
              .start();
  }
}

Benchmarks

Comparison with other full featured Java web frameworks:

Plaintext
JSON
Fortunes (Mustache templates)
Single query (MySQL)
Multiple queries (MySQL)

See Techempower Benchmarks Round 18 for more details.

Principles

Fast

All features should be fast at build time, startup, and runtime

Simple

Follow standard conventions, make the common case easy

Lightweight

Minimal dependencies necessary to cover the specification