A default for instance-id?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

A default for instance-id?

Radoslav Husar
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
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: A default for instance-id?

Tomaz Cerar
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: [hidden email]
[mailto:[hidden email]] On Behalf Of Radoslav Husar
Sent: Monday, March 26, 2012 3:18 PM
To: [hidden email] 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
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev