-
1. Re: How to pass env variables to jboss-service.xml
richardzheng Mar 31, 2004 11:12 AM (in response to r_rangana)What I know is to rewrite jboss-service.xml to update port number.
Richard -
2. Re: How to pass env variables to jboss-service.xml
r_rangana Mar 31, 2004 4:46 PM (in response to r_rangana)Richard, thanks for your reply. Re-writing entire jboss-service.xml I think would be a over kill. But jboss-service.xml already is picking up some variables say for example, the ${jboss.bind.address}. I'm wondering where is this coming from? I would like to do something similar for the port numbers and pass the value from command line.
------------------------------
8083
<!-- Should resources and non-EJB classes be downloadable -->
true
${jboss.bind.address}
${jboss.bind.address}
--------------------- -
3. Re: How to pass env variables to jboss-service.xml
r_rangana Mar 31, 2004 5:07 PM (in response to r_rangana)Hmm...if I add any xml code when I post a reply, they are missing. I added a snippet from jboss-service.xml. But they are broken. Bear with me, I'll repeat the question again.:
My question was that there are variables such as [jboss.bind.address] under WebService section, used already. So, I would like to add similar one for port#. -
4. Re: How to pass env variables to jboss-service.xml
starksm64 Mar 31, 2004 7:45 PM (in response to r_rangana)Any reference of the form $ { x } is replaced with the value of the 'x' system property by the mbean service descriptor parser. Just reference the port system property and then pass it to the vm.
-
5. Re: How to pass env variables to jboss-service.xml
r_rangana Apr 1, 2004 6:25 PM (in response to r_rangana)That's great! It works like a charm. Thanks Scott! I can pretty much pass anything to the run.sh as JVM args and most of the config files pickup the variables.