IBM Certified Advance WAS Administrator on 6.1, BEA Certified WebLogic Server 81 Administrator, Vitria Certified BusinessWorks Administrator, SCJP 2
Evan Caballero wrote:In my company, we also use property files. It's the easyiest way to configure applications.
IBM Certified Advance WAS Administrator on 6.1, BEA Certified WebLogic Server 81 Administrator, Vitria Certified BusinessWorks Administrator, SCJP 2
Evan Caballero wrote:What do you mean by "how do you manage" ??
IBM Certified Advance WAS Administrator on 6.1, BEA Certified WebLogic Server 81 Administrator, Vitria Certified BusinessWorks Administrator, SCJP 2
Evan Caballero wrote:if your application is packaged differently for different environments (dev, prod, etc ...), you should try to use Maven (a packaging tool like ant), and use one profile by environment, with the related property files for each profile.
IBM Certified Advance WAS Administrator on 6.1, BEA Certified WebLogic Server 81 Administrator, Vitria Certified BusinessWorks Administrator, SCJP 2
Evan Caballero wrote:I don't see a better solution
![]()
I remember in my previous company, we used an excel worksheet with the properties, and one tab per environment. To generate each file, there was an excel Macro to do the job.
IBM Certified Advance WAS Administrator on 6.1, BEA Certified WebLogic Server 81 Administrator, Vitria Certified BusinessWorks Administrator, SCJP 2
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:I don't like to configure stuff in property files, however, because you have to rebuild the components.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:
Tim Holloway wrote:I don't like to configure stuff in property files, however, because you have to rebuild the components.
Only if your property files live in the jar. Mine live in a separate directory. We certainly don't rebuild the software to change a property file; that defeats the purpose.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Evan Caballero wrote:you can use an environment variable for that.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:
For a stand-alone Java app. And in that context, that's one of the best ways to do it (and/or adding a command-line parameter).Evan Caballero wrote:you can use an environment variable for that.
However, I wouldn't recommend using environment variables for webapps.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Consider Paul's rocket mass heater. |