I have a spring web application (currently packaged as a war file) which I would like to be able to launch from jetty in a stand-alone configuration (small scale all-in-one deployment, and for launching in the development environment).
Since I am already using spring, it seems like what I want to do is create my jetty Server and WebContext objects, and initial JNDI context using spring. However this seems to overlap with the jetty.xml method of configuring the same environment.
Is one approach better? Is the does jetty.xml offer anything easier than I can get using spring?
I’d use jetty.xml for the Jetty configuration. If run into trouble with it, you will get easier help.
Also you would need two different Spring setups to configure both Jetty and your webapp, if you go the Spring route.