Installing and Configuring Broker
Install .jar, .tar, .zip packages using the following steps:
Make sure you have completed all generic prerequisites mentioned in the Prerequisites section.
Install the broker with the downloaded package:
jar:
You must have Java installed on your system, and the environment should be configured to run this file.
Download the JAR file into a folder.
Create folders (cache, config, bootstrap) where the JAR file is downloaded, using the following command:
mkdir -p britive-broker/cache britive-broker/config britive-broker/bootstrapCreate the broker-config.yml file under the config folder. To configure the file, see the Configure broker-config.yml file.
Bootstrap the broker:
If the Java command is running from the folder that has config/, cache/, and bootstrap/folders under it, use the following command:
java -Xms5M -Xmx50M -jar /path/to/jar_file.jarIf the Java command is running from any other folder, use the following command:
java -Dbritive.broker.config=/path/to/broker-config.yml -Xms5M -Xmx50M -jar /path/to/jar_file.jar
tar:
Locate the downloaded broker file and untar it using the following command:
tar -xvf britive-broker.tarCreate a bootstrap folder if you want to configure the resources and broker names; otherwise, it is optional. The cache and config folders are already available. Create a bootstrap folder using the following command:
mkdir -p britive-broker/bootstrapBootstrap the broker. To run this as a background service, add an ampersand (&) at the end of the Java command.
If the Java command is running from the folder that has config/, cache/, and bootstrap/ folders under it, use the following command:
java -Xms5M -Xmx50M -jar /path/to/jar_file.jarIf the Java command is running from any other folder, use the following command:
java -Dbritive.broker.config=/path/to/broker-config.yml -Xms5M -Xmx50M -jar /path/to/jar_file.jar
zip:
Unzip and extract the files from the downloaded file:
Unzip the files using the following command on Windows:
unzip britive-broker.zipUnzip the files using the following command on Linux:
tar -xf britive-broker.zip
Bootstrap the broker:
If the Java command is running from the folder that has config/, cache/, and bootstrap/ folders under it, use the following command:
java -Xms5M -Xmx50M -jar /path/to/jar_file.jarIf the Java command is running from any other folder, use the following command:
java -Dbritive.broker.config=/path/to/broker-config.yml -Xms5M -Xmx50M -jar /path/to/jar_file.jarjava -Dbritive.broker.config=/path/to/broker-config.yml -Xms5M -Xmx50M -jar /path/to/jar_file.jar
Add and configure broker-config.yml. For more details about the configuration file, see the Configure broker-config.yml file.
A list of brokers is updated on Britive after users download and install the broker package on their system.
Upgrading Access Broker
Untar/unzip the package.
Follow the steps to install the broker as mentioned at the top of the article.