hah, Nice trick, thanks Romain! This is only for verification, prod will use standards...
On 11 September 2014 21:13, Romain Manni-Bucau <[email protected]> wrote: > so just add a bin/setenv.sh and add a line: > > export CATALINA_OPTS="cat $CATALINA_HOME/conf/contextName.properties| > grep -v "^#" |sed -e 's/$/\ > /g'|sed -e 's/^/\-D/g'| sed 's/"//g'" > > to add it as system properties automatically > > > > or just a cp $CATALINA_HOME/conf/contextName.properties > $CATALINA_HOME/conf/system.properties if you don't use the last one > > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-11 21:06 GMT+02:00 Karl Kildén <[email protected]>: > > Nothing wrong with either of those. This is more a case of them being > very > > used to having things in a certain way :-) > > > > Of course hardly a blocker but the least I could was to ask the pros > > > > On 11 September 2014 21:02, Romain Manni-Bucau <[email protected]> > > wrote: > > > >> and tomee.xml or system.properties? > >> > >> > >> Romain Manni-Bucau > >> Twitter: @rmannibucau > >> Blog: http://rmannibucau.wordpress.com/ > >> LinkedIn: http://fr.linkedin.com/in/rmannibucau > >> Github: https://github.com/rmannibucau > >> > >> > >> 2014-09-11 20:30 GMT+02:00 Karl Kildén <[email protected]>: > >> > Hi, > >> > > >> > Well that is about the opposite of what I want :-) Putting it in the > war > >> is > >> > in my point of view to internalize it instead. > >> > > >> > On 11 September 2014 17:46, mauro2java2011 <[email protected]> > >> wrote: > >> > > >> >> Ho at > >> >> http://tomee.apache.org/refcard/refcard.html > >> >> > >> >> You can put into web-inf a file called resources.xml with a Resource > of > >> >> datasource configurated into it. > >> >> > >> >> Place properties of datasource into each web application. > >> >> > >> >> Next you can inject the datasource or configure persistence.xml with > >> the > >> >> name of resource datasource for use with jpa. > >> >> > >> >> Hi mauro > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > http://tomee-openejb.979440.n4.nabble.com/Externalize-datasource-settings-to-a-properties-file-of-my-choice-tp4671706p4671731.html > >> >> Sent from the TomEE Users mailing list archive at Nabble.com. > >> >> > >> >
