I know this must be a common question, and I've been googling for the best
practice for using a different configuration file (say a different
hibernate.cfg.xml file) for different profiles (based on a profile, local,
itr, etc.)

Normally I rely on a single file that is filtered based on a different
filter file (prepended  by the profile environment name), however the files
now might be drastically different for a local build (where I define
properties for a datasource) and a production build which will have
different properties in the file for locating a datasource, so just using in
place substitution isn't the best (I'd prefer a way to copy a completely
different config file based on the profile being run.)

Basically how to you include different property/xml files for your different
builds (using profiles)

-- 
Rick R

Reply via email to