Hibernate and Tomcat

Status
Not open for further replies.

Doddy

Broken In
Is it possible to make hibernate work with Tomcat without altering the server.xml?

I don't have easy access to server.xml and I'd like to control it from my application only.....
 

#/bin/sh

Journeyman
If you are using Tomcat 5+ then you can define your context inside an xml inside your yourapp/META-INF directory:

*jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
 

#/bin/sh

Journeyman
ie: (from that link)

--------------------

Please note that for tomcat 5.x, unlike tomcat 4.x, it is NOT recommended to place <Context> elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as described above.
 
Status
Not open for further replies.
Top Bottom