-
1. Re: JBAS5.1: ${} deployment notation - Newbie information re
peterj Jul 14, 2009 1:25 PM (in response to simon_temple)The jboss.jgroups.udp_async.mcast_port is a system property, you can set it on the command line:
run -Djboss.jgroups.udp_async.mcast_port=12345 -
2. Re: JBAS5.1: ${} deployment notation - Newbie information re
peterj Jul 14, 2009 1:26 PM (in response to simon_temple)The general syntax is:
${<system-property>[:<default-value>]}
As far as I know, it applies to all configuration files. -
3. Re: JBAS5.1: ${} deployment notation - Newbie information re
simon_temple Jul 15, 2009 6:19 AM (in response to simon_temple)Thanks Peter.
But that's potentially a huge number of system properties to be set via a command line if you heavily customise JBAS configuration.
I could exceed the command line length on some operating systems...
Shame you can't specify something like a properties bundle to the deployers. -
4. Re: JBAS5.1: ${} deployment notation - Newbie information re
peterj Jul 15, 2009 10:16 AM (in response to simon_temple)Then use the properties service - it lets you identify a file containing system properties - and you can even specify the filename as a property. Look at server/default/deploy/properties-service.xml.
-
5. Re: JBAS5.1: ${} deployment notation - Newbie information re
peterj Jul 15, 2009 10:21 AM (in response to simon_temple)Oh, and one other thought - the correct way to specify different port number is to use the binding service. See server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml. This file defines groups of port bindings that you can select from the command line like this:
run -Djboss.service.binding.set=xxx
where xxx is the desired configuration, such as ports-01.
The predefined binding set includes the default bindings and the others are incremental in nature (example: port = default port + 100). But you can make a copy of the default port set and specify custom binding and then use that set. -
6. Re: JBAS5.1: ${} deployment notation - Newbie information re
simon_temple Jul 15, 2009 10:35 AM (in response to simon_temple)Thanks again Peter.
...feeling a little embarrassed now I found further details of this in the book JBOSS in Action. A book I'm finding really useful BTW, although it looks like I need to study it some more ;-)