-
1. Re: URGENT: How do I get variable values from the applicatio
jmoring Dec 4, 2002 10:09 AM (in response to tbauer)For an URGENT request you are a little thin on details but... ;)
I am assumming 3.x ...
In the server/default/deploy directory there is a file called properties-service.xml. At the bottom of that file you will find the system properties service. You should see the following commented out element:
my.project.property=This is the value of my property
my.project.anotherProperty=This is the value of my other property
Uncomment this section and add your property values.
After the service is redeployed, these properties are now accessable via System.getProperty(...) method calls
HTH -
2. Re: URGENT: How do I get variable values from the applicatio
tbauer Dec 5, 2002 2:11 AM (in response to tbauer)>> For an URGENT request you are a little thin on details but... ;
Well, despite my "thin" details you suggestion definitely helped point me in the right direction...I read the file you suggested and it actually had a comment indicating that I should put my properties in another file:
/server/default/conf/jboss-service.xml
which I did...and yes, thank you, it works perfectly...
thanks a million... -
3. Re: URGENT: How do I get variable values from the applicatio
jmoring Dec 5, 2002 10:35 AM (in response to tbauer)Sorry for the comment!!!! It sounded funny when I typed it.
What version are you using? I don't see any such note in my files. I am still using 3.0.0.
Thanks
Jim -
4. Re: URGENT: How do I get variable values from the applicatio
tbauer Dec 6, 2002 5:25 PM (in response to tbauer)Jim, I'm using 3.0.3..on Mac OSX 10.2.2 with MySQL 3.23.53.
Inside the properties_service.xml file down near where the system properties service is commented out, there's a comment that read:
<!-- Allows rich access to system properties. This now lives in
the conf/jboss-service.xml descriptor by default in the default
and all configurations.
in other words: /server/default/conf/jboss-service.xml
thanks again...cheers, tim