Hi,
I am trying to migrate a standalone server instance to domain mode installation. Having 2 server instances instead of 1.
All going well except the messaging (artemis) subsystem config when defining unique file paths for messaging journal persistance.
Reading the docs it suggests it is possible to reference a path in domain.xml. Using a path reference near the top. Then declare the property reference at the server level in hosts.xml.
"There is a path named 'x' that other parts of the domain.xml configuration can reference.
The actual filesystem location pointed to by 'x' is host-specific and will be specified in each machine's host.xml file."
Which I have attempted to do using the following xml configuration.
domain.xml
.....
<paths>
<path name="messaging-journal-path"/>
</paths>
.....
<subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0">
......
<journal-directory path="${messaging-journal-path}"/>
.....
hosts.xml
......
<server name="G2A" group="main-server-group" auto-start="true">
.......
<paths>
<path name="messaging-journal-path" path="../../../../messaging-journal/G2A"/>
</paths>
......
I am not seeing the expected .amq files in the path. The server.log shows this error message
2016-03-22 12:22:21,907 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 44) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "messaging-activemq"),
("server" => "artemis")
]) - failure description: "WFLYCTL0211: Cannot resolve expression '${messaging-journal-path}'"
Should this be working ?
Regards,
Jeremy
$ java -version
openjdk version "1.8.0_60"
OpenJDK Runtime Environment (build 1.8.0_60-b27)
OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)
$ ./bin/jboss-cli.sh --controller=acme --connect --commands="read-attribute product-version"
10.0.0.Final