axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert lazarski <robertlazar...@gmail.com>
Subject Re: Axis2, Hibernate, and configuration files...
Date Tue, 15 Mar 2011 11:49:22 GMT
On Mon, Mar 14, 2011 at 10:38 PM, Jacques Poulin
<jacques.poulin@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-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Mime
View raw message