title: How to use hibernate.properties file instead of hibernate.cfg.xml
body: <p>I am trying to connect to DB in a servlet using Hibernate.I have read that we can use either hibernate.cfg.xml or hibernate.properties file for configuration of session.For me it worked with xml. Now when I am trying to use properties instead of xml its not working.
  It is saying that <strong>hibernate.cfg.xml</strong> <strong>not found</strong>.But nowhere I mentioned to use xml file and infact I have deleted that xml file.</p>
  
  <p>Please Help me.
  And Please correct me if I am doing anything wrong.</p>