Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The starter calculator applications are the recommended way to get familiar with Fabric3. To build and deploy the calculator applications, do the following:

...

1. Build the sample modules

...

In the directory where you extracted the samples distribution, execute:

...

Info

Note internet access is required the first time the project is built so Maven can download the required project dependencies. Remote access can be turned off for subsequent builds by executing:

mvn -o clean install

2. Build the Fabric3 server distribution

...

Download the Fabric3 runtime by executing the Maven build script from the servers/vm directory:

...

This will create a server image for use with the samples in the /target/image directory. Note the server is configured to run as a single instance. The /servers/cluster directory contains modules which will configure a multi-cluster Fabric3 installation. The starter applications can be deployed to either topology.

3. Start the server

...

To launch a Fabric3 server in single-VM mode, execute the following from the servers/vm/target/image/bin directory:

...

Info

It may be necessary to configure some JVMs (e.g. OS X) to use IPv4 over IPv6 when starting the clustered runtimes. To do so, use the standard JVM command line parameters, e.g.:

java -Djava.net.preferIPv4Stack=true -jar server.jar

4. Deploy the application

After the server has booted, deploy a calculator application archive by copying it to the Fabric3 runtime /deploy directory. The runtime will write a message to the console after the archive has been deployed. Depending on the application deployed, one of the following endpoints will be available:

...