Skip to content

binout/micro-javaee

Repository files navigation

micro-javaee

This project compares different deployment configurations of JavaEE micro-service.

Prerequesites

  • JDK 8

  • Maven 3

WAR deployment

The application is packaged as a war.

mvn wildfly:run

Wildfly distribution is downloaded and unzipped in target directory. The application is packaged as a war and deploy to Wildfly.

Wildfly Swarm

More information : http://wildfly.org/swarm/

mvn clean package -Pswarm

The application is packaged as a fat jar with a some wildfly modules embedded : micro-javaee-swarm.jar.

You can start the application with :

java -jar target/micro-javaee-swarm.jar

Payara Micro

mvn clean package -Ppayara

The application is packaged as a war. Payara micro is downloaded and put in target directory.

You can start the application with Payara micro as bootstrap :

java -jar target/payara-micro.jar --deploy target/micro-javaee.war

TomEE Embedded

mvn clean package tomee:exec -Ptomee

The application is packaged as an executable jar. At startup, TomEE is unpacked just near the jar.

You can start the application with :

java -jar target/micro-javaee-exec.jar

KumuluzEE

More information : https://ee.kumuluz.com/

mvn clean package -Pkumuluzee

The dependencies are copied into target/dependency.

You can start the application with :

CONTEXT_PATH=/micro-javaee java -cp target/classes:target/dependency/* com.kumuluz.ee.EeApplication

Comparison

Wildfly Swarm Payara Micro TomEE Embedded KumuluzEE

Packaging

war + application server

jar

war + jar

jar

classes + target/dependency/

Size

10 Ko + 159 Mo

83 Mo

10 Ko + 57 Mo

44 Mo

15 Mo

Startup time

7s

4s

9s

2s

1s

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published