JBoss:Developer's Guide
上QQ阅读APP看书,第一时间看更新

JBoss EAP 7 installation

To set up the BeOSBank EAP domain with three hosts, we will use various configuration techniques:

  • XML file modifications
  • CLI commands
  • GUI updates

The first step to create our domain is to set up the infra; we will use single installation binaries and different configuration subfolders to simulate remote hosts:

$ unzip jboss-eap-7.0.0.zip -d $HOME/books/jbossdev/BeosBankDevDomain

Then, we will create virtual hosts and initialize the domain configuration folder with the existing templates:

$ export EAP_DOMAIN =$HOME/books/jbossdev/BeosBankDevDomain
$ cd $EAP_DOMAIN
$ mkdir host0 host1 host2
$ cp -r jboss-eap-7.0/domain host0/
$ cp -r jboss-eap-7.0/domain host1/
$ cp -r jboss-eap-7.0/domain host2/

In real life, you would have a separate installation binary for each host, but we will use the same installation binaries shared by the three hosts for this lab. The configuration files to be used for each host will be specified in the startup command. This is a best practice that allows you to run multiple instances of the EAP in the domain mode on the same machine from common binaries. It also allows you to upgrade to a newer version of EAP without affecting or overwriting your configuration files.