You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by chakib <ch...@gmail.com> on 2015/11/17 13:50:05 UTC

Declare datasource on a properties file outside tomee

Hello,

Is there a way to declare data source configuration outside the tomee
container in a properties file without touching any tomee/tomcat config or
env file? ( something like spring placeholder or otherwise create the
datasource dynamically) 

This is the standard in the company and the Ops guys insist on it.

Thanks in advance



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Declare-datasource-on-a-properties-file-outside-tomee-tp4676810.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Declare datasource on a properties file outside tomee

Posted by chakib <ch...@gmail.com>.
Thanks for the quick reply.

I think i'll load properties in setenv.sh then



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Declare-datasource-on-a-properties-file-outside-tomee-tp4676810p4676818.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Declare datasource on a properties file outside tomee

Posted by Romain Manni-Bucau <rm...@gmail.com>.
~/.openejb/system.properties is read, openejb.config.location can be set as
system property to externalize tomee.xml, you can also just set all system
properties as system properties and read them from where you want using
source in bin/setenv.sh.
Le 17 nov. 2015 05:04, "chakib" <ch...@gmail.com> a écrit :

> Hello,
>
> Is there a way to declare data source configuration outside the tomee
> container in a properties file without touching any tomee/tomcat config or
> env file? ( something like spring placeholder or otherwise create the
> datasource dynamically)
>
> This is the standard in the company and the Ops guys insist on it.
>
> Thanks in advance
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Declare-datasource-on-a-properties-file-outside-tomee-tp4676810.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>