Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsexternalize eclipselink.target-database property
https://www.eclipse.org/forums/index.php/mv/msg/162418/513702/#msg_513702
-Brad]]>brad Mising name2010-02-10T21:32:47-00:00Re: externalize eclipselink.target-database property
https://www.eclipse.org/forums/index.php/mv/msg/162418/513717/#msg_513717
> Hey guys, what is the best way to externalize the
> "eclipselink.target-database" property in persistence.xml. We would like
> to distribute the same ear for multiple databases, but don't want to
> build a different ear for each database type. What do you guys think?
> Thanks
> -Brad
I do the whole config by code instead of XML.]]>Tom Eugelink2010-02-10T22:53:27-00:00Re: externalize eclipselink.target-database property
https://www.eclipse.org/forums/index.php/mv/msg/162418/513940/#msg_513940
-Brad]]>brad Mising name2010-02-11T17:57:45-00:00Re: externalize eclipselink.target-database property
https://www.eclipse.org/forums/index.php/mv/msg/162418/513956/#msg_513956
> We are looking to make it editable by our users so it would benefit us
> to keep it in the xml file.
> -Brad
Well, naturally mine is editable by sysadmin as well; it's also in a configuration file, just not in the one in the BM jar. It's totally external to the application (in /etc even). Because of the configuration-by-code I can put it where ever I want, fetch the value and configure.