Hi, I probably was not clear. There is a text file under tomee/conf called system.properties. You can simply write the property as follows
DB.Password = password It just takes keys and values and then adds them to the system properties on start up. It contains a lot of commented out examples right in the file. Do you see it? Richard On Tue, Dec 3, 2019 at 7:40 AM randygalbraith <[email protected]> wrote: > Hi Richard, > > I was reading that document (among others). In the "Defining Resources" > section it shows this code: > > p.setProperty("DB.Password", "password"); > > This is close to what I need to work. Alas, the example does not show how > the variable "p" is created. Thus I was on the hunt to understand > properties > within Java and then TomEE containers in particular. Since I was at that > part of the document I didn't get down to the section "factory-name > method." > > I'm happy you mentioned that link, because it gives me confidence I was > looking in the right spot. There are some other aspects of my project I > haven't mentioned that will impact the ultimate solution. All our > configuration starts out in a gnumake file as gnumake variables. These are > then expressed as m4 macros we then place in a template (i.e. > foo.properties.m4 becomes foo.properties). > > Second is that while TomEE is being used for development the module that > I'm > working on may need to land in Weblogic (the wheels of new technology > review > and approval often moves slowly in large organization). Thus whatever the > solution winds up being I most likely will need to work in TomEE and > Weblogic. > > Cheers, -Randy > > > > -- > Sent from: > http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html > -- Richard Monson-Haefel https://twitter.com/rmonson https://www.linkedin.com/in/monsonhaefel/
