Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
2.1
Mapping documents:
None
Code between sessionFactory.openSession() and session.close():
None
Full stack trace of any exception that occurs:
None
Name and version of the database you are using:
None
The generated SQL (show_sql=true):
None
Debug level Hibernate log excerpt:
None
We have created a server application that utilizes Hibernate to make database updates. However, when deploying at the customer sites, we find that the hibernate.cfg.xml file needs to be customized per site. The problem is that this file is always contained inside the jar in the appropriate package where the Hibernate Factory code is located. In order to modify this xml file, we need to rebuild the jar with the xml file modifications in it.
Is there an easier way to do this? Can we deploy the application without having to have the cfg.xml contained in the package where it is called? Can it exist outside the jar?