I also host on Amazon with Tomcat and develop with Jetty.

Hibernate just gets the datasource from the container. When running
locally that's Jetty and Jetty reads the jetty-web.xml file to build
the connection. When deployed under Tomcat that would most likely be
the server.xml file in the Tomcat conf directory. Tomcat requires a
mapping between the server.xml configurations and each web app. I do
this by creating a META-INF/context.xml file in the project. When
Tomcat deploys the app it will pick up that file and use the mapping
you provide. The contents would be something like

<?xml version="1.0" encoding="UTF-8"?>
<Context>
<ResourceLink name="jdbc/wind" global="jdbc/wind" type="javax.sql.DataSource"/>
</Context>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to