Easy installation: Just java -jar hudson.war, or deploy it in a servlet container. No additional install, no database.
This is what I just read from the hudson's website this morning.
If it is so easy to run an application everyone wants to try it. So I did: just downloaded and run. It took 5 minutes, and it kept the promise.
No database: for simple applications there are many alternatives to require the user to install a database and to configure it: flat files, embedded database, sometime a source control management (cvs/svn) could apply, etc.
I just looked some details, I see that hudson is using maven to get packaged into this hybrid war-jar. Looking inside you can see that there is a Main.class in the root of the war (and a JNLPMain.class that surely is used for Java WebStart) and a servlet engine called winstone.jar at the same level. Cool: the container is also contained!
Also winstone is built with maven.
I've not looked in detail how the magic is done, but after a quick run, it seems that the main class, unpacks the war (~/.hudson) and then runs the servlet engine against the unpacked application itself.
Also it would be interesting to see how the maven pom file of hudson looks like to realize this.
Some days ago I noticed that jetty is capable to run war files in similar way: it's called Jetty Runner.
I am sure that this magic can be done also with jetty.
That's how things should be! I can't tell you how many weeks are needed, and how many persons, to deploy the application that I am working on now...
One Response to “Self executing war files”
Leave a Reply
Search
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jun | Aug » | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||
Archives
Categories
Tag Cloud
Android API Bash Bios CSS Development Eclipse Encription Error Handling Font Git Google GWT Hardware How-To HTML Installation iPod Java JavaScript Karmic Linux Lucks MacBook Open Source Opinion OSX Pitfalls Pkg Practices Python Resume Security Software Suspend TDD Testing Tools Top Down Tricks Ubuntu Uninstall Wakup On Lan Web Workaround
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Blog License
Blogs I like
Books on the desk
Friends' Blogs
- Antonio Terreno & Valter Bernardini
- Bruno Bossola
- Daniele Galluccio
- Domenico Ventura
- Ed Schepis
- Fabrizio Gianneschi
- Luca Grulla
- Luigi Zanderighi
- Marcello Teodori
- Mida Boghetich
- Muralidharan Chandrasekaran
- Piero Ricca
- Renzo Borgatti
- Simone Bordet
- Simone Bruno
- Uberto Barbini
- Valvolog
- Webtide blogs (Greg Wilkins & Jan Bartel)
Links




















Hi Luigi,
But i would reckon this would only be used for demos, presentations instead of production based apps. Since each web-app will run on its on container, and your server may have multiple apps. But nevertheless a really convenient way to deploy standalone apps.
Ken.