setting system properties

Hello. I'm trying to set the system property that controls which implementations will be returned by the JAXP API's. I know what property I need to set, that's not the problem. I just need some advice on the various ways in which one can set system properties in a J2EE environment, and the pros and cons.

For instance, I know that i can set it on the command line as a parameter to the java command that starts the application. Or i can set it in the code.

I'd appreciate any recommendations or suggestions.

[533 byte] By [chadmichaela] at [2007-11-27 9:17:05]
# 1
use jvm argsjava -Dpropname=propvalue -jar jarfile.jarthat sets the system properties. i like them better then command like args because they are easier to get later, you dont need to care about them in main
mkoryaka at 2007-7-12 22:07:18 > top of Java-index,Java Essentials,Java Programming...
# 2
I understand that I can use the -D argument to java. However, the system that I work on is quite large, and it seems like this style of argument passing would become a mess. Eventually, there would be dozens of such arguments in my java command that starts the system.
chadmichaela at 2007-7-12 22:07:18 > top of Java-index,Java Essentials,Java Programming...