Java Reference
In-Depth Information
<version>${version.org.jboss.as.plugins.maven.plugin}</version>
<configuration>
<filename>${project.build.finalName}.jar</filename>
<hostname>${hostname}</hostname>
<port>${port}</port>
</configuration>
</plugin>
Therefore, you will use the following shell to compile the package and deploy the ap-
plication on the first node:
mvn install jboss-as:deploy
-Dhostname=localhost -Dport=9999
For the second node, you will use the following:
mvn install jboss-as:deploy
-Dhostname=localhost -Dport=10199
Note
Deploying in the domain node works the same as in the preceding example, ex-
cept that you need to add the domain tag in your configuration, and you also
need to specify at least one server group. Visit https://docs.jboss.org/jbossas/
7/plugins/maven/latest/examples/deployment-example.html for more information
about it.
Once you have deployed both applications on your server node, you should be able
to see the cluster view in the server console logs, and also see that the Infinispan
cache has been started. The following is the expected log for the first node:
Search WWH ::




Custom Search