I've been trying to setup my mySQL connection to tomcat as well and has been reading a lot of documents on how to do this. I think I'm getting more confused.
Context evtCtx = (Context) ctx.lookup("java:comp/env"); DataSource ds = (DataSource) evtCtx.lookup("jdbc/mySQLDatabase"); ---> in my web.xml : <res-ref-name>jdbc/mySQLDatabase</res-ref-name> ---> in my server.xml: <ResourceParams name="jdbc/mySQLDatabase">
If you have your data source defined in <GlobalNamingResources> then you'll need a <ResourceLink> element in your <Context> in order to use the DataSource.
Other than that, things look good.
-chris
signature.asc
Description: OpenPGP digital signature
