Tag Archives: Apache Tomcat
How to run Java services (or background daemon processes) in an application server or web container?
I’ve presented here a simple example to illustrate how to convert stand-alone java programs (mostly, JARs) to WARs which can then be deployed in full-blown application servers (JBoss, WebSphere, etc.) or light weight web containers (Tomcat, Jetty, etc.). This’s generally done to avoid the hassle of managing background daemon processes separately. Also, deploying all of […]
To quickly test your maven web application using an embedded tomcat instance, you just need to include this xml snippet in your Maven POM file, and post compilation, execute the command: mvn tomcat:run. You can play around with the <port>, <path>, and <warFile> options as you need.