• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to put hibernate configuration xml files in a web application

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose I want to develope a web srevlet/jsp application and its backend uses hibernate DAO. I have the following hibernate cxml files and I don't know where to deploy them to.

hibernate.cfg.xml (hibernate configuration file), db.hbm.xml (datbase mapping file)

I have this deployment directory structure

WEB-INF/
classes/
myapp/dao
myapp/action
myapp/servlet/
....
lib/

Shall I put them in WEB-INF/ directory ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right in the root of your classpath, so I would say that would be inside the classes/ directory.

Mark
 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks I will try it later
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic