I am currently trying to externalize ServiceBindings configuration by storing the value for the port number of each service into a system property.
The name/value pairs are put together in a .properties-file and accessed from the jboss-service.xml via the SystemPropertiesService mbean.
I replaced the port number value in the ServiceConfig-elements of the ServicesStore with references to the system property but there doesn't seem to be any resolution done by the system and subsequently no configuration override is being applied.
What could I do to handle efficiently the service port mappings?
Thank you for your help!
ok, I resolved the issue by myself (at least I think so).
The name attribute of the server directive can't be substituted by a system property variable.
So I hardcoded the the same server name into the bindings.xml and jboss-service.xml since the uniqueness doesn't matter as long as the servers aren't started synchronously.