TomEE Runner?


Just hacked a bit on the great work Jonathan Gallimore started about tomee-embedded uber jar. The idea was to create a runnable jar.

Each parameters were an application to deploy.

My hack gave simply some more configuration:

  • –port <http port>
  • — shutdown <shutdown port>
  • –directory <tomee directory> (note: will be deleted after the run)
  • — path <application>

A common usage will be:

java -jar tomee-embedded-1.1.0-SNAPSHOT-uber.jar --path my-application.war

If TomEE webprofile is not enough for you you can go back to a configurable classpath based on the uber jar (or not if you are motivated) and you can add tomee-jars/tomee-webservices etc dependencies to be able to run a JAXRS/JAXWS application. The main class to specify is “org.apache.tomee.embedded.Main”.

Advertisements

2 thoughts on “TomEE Runner?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s