Tim Moores wrote:Depends on where you want to deploy it. Some servlet containers need a war file, whereas others are happy to serve web apps out of a directory
However, that "directory tree" must still be in WAR form. It's called an "exploded WAR".
Also, there are 2 ways to interpret the words "directory tree". I often have may WARs in a "directory tree", but by that I mean that I have the WAR file in some other directory than TOMCAT_HOME/webapps. It's still a WAR
file, however. I'm presuming, though that what was meant here was a WAR directory structure (exploded WAR). Exploded WARs can also live either in TOMCAT_HOME/webapps or in a general external "directory tree".
Any webapp sophisticated enough to be worth the trouble and expense of coding in
Java should be using database connection pooling.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.