I spoke a lot of ApplicationComposers on this blog. If you don’t know it yet in two words it is originally a way to fully define its EE application programmatically and then run test against this described application.
However with a trivial main you can make it run your application!
Starting Tomcat, TomEE or OpenEJB is quite simple, basically a single script to run….but a script. Sometimes in production you can’t use bash or something else and these scripts can be broken in the shell you have access to.
Another point can be the normalisation in the enterprise of runners: all java apps should be runnable with java -jar app.jar.
Well globally sometimes you need a jar to run TomEE. If you read my previous posts you know there are few solutions but nothing very simple.
That’s why TomEE Maven Plugin now supports an exec goal.
Just hacked a bit on the great work Jonathan Gallimore started about tomee-embedded uber jar. The idea was to create a runnable jar.