In a resin web app, you can have a resin-web.xml file located under the WEB-INF folder along with the web.xml file. Or, you can just put your datasource information in the web.xml file. The reason resin will look for a resin-web.xml file is because resin allows for some resin specific tags in the web.xml file and putting those tags in resin-web.xml allows you to keep the web.xml file adhearing to the
j2ee specifications for that file in case you ever needed to deploy your app on another app server, you wouldn't have to mess with the web.xml.
Also (on the side), I downloaded the latest stable MySQL driver to use with Resin, but where does it go in Resin? I put it in my web app's lib direstory and declared the driver in the driver tag of the resin.conf file, but when I fire up the Resin server it says it can't load the driver class? If you are using the resin.conf file to config your datasource, then the
jdbc driver needs to be placed in the resin/lib folder. If you put the datasource in the resin-web.xml file, you can put the driver in the WEB-INF/lib folder of your web app.
Here is a sample resin-web.xml file that I was using.
the <database> tag is for my connection pool. The JDBCAuthenticator is for forms authentication using a database for the username and password. The XMLAuthenticator was for using a password.xml file for the username, password, and roles. You can find all this well documented on Resins web site.
[ December 21, 2003: Message edited by: Gregg Bolinger ]