On Mon, Mar 14, 2011 at 10:38 PM, Jacques Poulin
<jacques.pou...@gmail.com> wrote:
>
> What I want to do is figure out how to make the web service (WSProject) use
> an EXTERNAL hibernate.cfg.xml file once deployed on a tomcat server.  The
> reason is that I'll have multiple such web services, and I want them all to
> use the same configuration file, instead of having each web service having
> its own hibernate config file...
>
>

I understand correctly, you could use the hibernate api:

http://docs.jboss.org/hibernate/stable/core/api/org/hibernate/cfg/Configuration.html#addDirectory%28java.io.File%29

Or if you are using spring anyways:

http://static.springsource.org/spring/docs/2.5.0/api/org/springframework/orm/hibernate3/LocalSessionFactoryBean.html#setMappingDirectoryLocations%28org.springframework.core.io.Resource[]%29

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to