Link Details

Link 983985 thumbnail
User 163060 avatar

By fernandorubbo
Published: Jun 17 2013 / 14:16

Recently I had the necessity to write an embedded war. At a first glance, I thought: “It is a pretty simple task, I've done it many times using Jetty”. Just some minutes later I remembered: “Wait a minute... I've used embedded Jetty servers into jar files, but how can I do the same using war files?”. The answer of this question is a bit “tricky”. Actually, you have to create a war file which will have to play two different roles. The first one is responsible to start the embedded Jetty server and the second one is the web app itself. This post will shows you how to create an embedded war file using Jetty web server and Gradle.
  • 11
  • 0
  • 2738
  • 1361

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax