[jboss-as7-dev] A default for instance-id?
Tomaz Cerar
tcerar at redhat.com
Mon Mar 26 09:29:44 EDT 2012
Rado,
IMHO it would make sense, but this should be done in websubsystem
definition so there is no need to define it in configuration as this
system property is defined even if you run it in standalone.
WebDefinition.INSTANCE_ID should be changed so it would have default value
set to this.
.setDefaultValue(new ModelNode().setExpression("${jboss.node.name}"))
This way you get exactly the same functionality but without any xml
changes.
--
tomaz
-----Original Message-----
From: jboss-as7-dev-bounces at lists.jboss.org
[mailto:jboss-as7-dev-bounces at lists.jboss.org] On Behalf Of Radoslav Husar
Sent: Monday, March 26, 2012 3:18 PM
To: jboss-as7-dev at lists.jboss.org Development
Subject: [jboss-as7-dev] A default for instance-id?
Would it make sense to default instance-id in HA profile to node name?
instance-id="${jboss.node.name}"
Node names in cluster already need to be unique [1] thus routes will be
unique too and would solve problems like [2] as a side effect :-) When
running single node, then mod_cluster automatic generation does the job.
Just throwing it out there...
Rado
[1] https://issues.jboss.org/browse/AS7-2493
[2] https://issues.jboss.org/browse/JBPAPP-8451
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
More information about the jboss-as7-dev
mailing list