ReUsing connection properties from hibernate.cfg.xml to properties file in Struts2 Framework
posted 3 years ago
In my struts2 web-application with Hibernate3.5 ORM, we are using the default hibernate.cfg.xml for all db properties. In the hibernate.cfg.xml file the following properties, I want to use in quartz.properties file @ startup(when the application initializes).
The reason why i can't hardcode the same in quartz.properties file is because in the production servers we have different properties for different environments. Please suggest me what changes i need to do in order get the properties files these properties at startup.