tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Kildén <karl.kil...@gmail.com>
Subject Re: Externalize datasource settings to a properties file of my choice?
Date Thu, 11 Sep 2014 20:30:24 GMT
hah,

Nice trick, thanks Romain! This is only for verification, prod will use
standards...

On 11 September 2014 21:13, Romain Manni-Bucau <rmannibucau@gmail.com>
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 <karl.kilden@gmail.com>:
> > 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 <rmannibucau@gmail.com>
> > 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 <karl.kilden@gmail.com>:
> >> > 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 <mauro2java2011@gmail.com>
> >> 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.
> >> >>
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message