This content has been marked as final.
Show 5 replies
-
1. Re: How to set a system property during JBOSS startup.
anil.saldhana Dec 30, 2004 10:31 AM (in response to rohit_kumbhar)Whats stopping you from passing properties to the jvm in the run.sh/run.bat scripts?
java -Dproperty=value
A second way, add your properties to the file "properties-service.xml" in the deploy dir of your configuration (default/all etc). -
2. Re: How to set a system property during JBOSS startup.
astormnen Dec 30, 2004 3:58 PM (in response to rohit_kumbhar)What if the property values are dynamic and set during compile time?
-
3. Re: How to set a system property during JBOSS startup.
peterfellwock Dec 30, 2004 8:25 PM (in response to rohit_kumbhar)I actually embedded the property values inside my main class in a jar file and I want jboss at deployment to run execute static{}. Which I thought Jboss would execute it but it did not, how can I do this?
-p -
4. Re: How to set a system property during JBOSS startup.
rohit_kumbhar Dec 30, 2004 11:59 PM (in response to rohit_kumbhar)Thank you!
Adding to properties-service.xml solved the problem. -
5. Re: How to set a system property during JBOSS startup.
astormnen Jan 3, 2005 2:23 PM (in response to rohit_kumbhar)peterfellwock
I tried to email you but the email(samurai@active.com) doesn't seem to exist. I wanted to ask you about your setup and why you're doing what you're doing.