yhqian99 wrote:
Hello all,
I use MyEclipse to develop hibernate application. I found the hibernate.cfg.xml is put in the same folder as java class file, so the user can't update this file after the package is deployed. I'd like the user can access the hibernate.cfg.xml to update database url, username, password so that the application can be dynamically configured. how to solve this problem?
Thanks
Yhqian
Just don't include the
hibernate.cfg.xml to the jar and let it remain at application classpath.