Deploy JMS inbound connector
Prerequisites
Installation prerequisites on Linux
Supported operating systems
The connector is supported on the following operating systems:
- RHEL/CentOS (8 and 9)
- Ubuntu (20.04, 22.04 and 24.04 LTS)
- Debian (11, 12 and 13)
- Amazon Linux 2023
Java Runtime Environment
This connector is a Java web-application that requires Java 17 or later. Both Oracle and OpenJDK Java Runtime Environments are supported.
The connector is supported on both amd64 and arm64 architectures.
Follow these steps on the system or systems where you plan to run the connector:
Install on Linux
Install Java 17 or later, if it is not already installed.
RHEL or CentOS
sudo yum install java-17-openjdkDebian or Ubuntu
sudo apt-get install openjdk-17-jreAmazon Linux
sudo dnf install java-11-openjdkInstall Java 8 or later, if it is not already installed.
RHEL or CentOS
sudo yum install java-1.8.0-openjdkDebian or Ubuntu
sudo apt-get install openjdk-8-jre-
Install the connector package
Go to the Aerospike Enterprise downloads site to download the connector package for your operating system. After downloading the package, run either of these commands:
RHEL or CentOS
Terminal window sudo rpm -i aerospike-jms-inbound-3.0.15-1.noarch.rpmDebian or Ubuntu
Terminal window sudo dpkg -i aerospike-jms-inbound-3.0.15.all.debAmazon Linux
Terminal window sudo rpm -i aerospike-jms-inbound-3.0.15-1.noarch.rpm -
Install the Aerospike Database Enterprise Edition feature-key file
Download the feature-key file and put in at the desired location which is accessible to the connector at runtime. The property
mesg-jms-connectorfeature must be enabled in the feature key file. -
Enable connector auto start
Run this command to enable the connector to start on system startup or reboot:
Terminal window sudo systemctl enable aerospike-jms-inboundRun this command to start the connector:
Terminal window sudo systemctl start aerospike-jms-inbound
Install JMS inbound connector on Kubernetes with helm-charts
If your deployment situation allows the use of Helm charts, you can install the JMS inbound connector on a Kubernetes deployment using Helm.
-
Add the Aerospike Helm repository.
Terminal window helm repo add aerospike https://aerospike.github.io/helm-charts --force-updatehelm repo update -
Create the file
values.yamlwith your JMS inbound connector configuration. The following example includes a basic JMS inbound connector configuration as part of the Helm installation.values.yaml replicaCount: 3image:repository: aerospike/aerospike-jms-inboundtag: "latest"connectorConfig:# Optional HTTP Server configuration to expose Manage API and Prometheus metricsservice:manage:port: 8081# JMS sources to consume messages from.queues:MyJmsQueue:aerospike-operation:type: writeparsing:format: jsonmapping:bins:type: multi-binsall-value-fields: truekey-field:source: value-fieldfield-name: keynamespace:mode: staticvalue: test# The connection properties to the JMS message broker.jms:# RabbitMQ example.factory: com.rabbitmq.jms.admin.RMQConnectionFactoryconfig:host: rabbitmq.rabbitmq-systemport: 5672username: guestpassword: guest# The Aerospike cluster connection properties.aerospike:seeds:- aerocluster.aerospike:port: 3000# The logging properties.logging:enable-console-logging: trueconnectorSecrets: []serviceAccount:create: truename: aerospike-jms-inbound -
Install the JMS inbound connector by running the following Helm command.
Terminal window helm install aerospike-jms-inbound aerospike/aerospike-jms-inbound --values values.yaml --atomic --wait --debug --create-namespace --namespace aerospike
Deploy on Docker
Aerospike provides Docker images for the Aerospike connect for JMS Inbound on Docker Hub.
sudo docker run \ -v <path to local aerospike-jms-inbound.yml>:/etc/aerospike-jms-inbound/aerospike-jms-inbound.yml \ container.aerospike.com/aerospike/aerospike-jms-inbound:latest<path to local aerospike-jms-inbound.yml>: The path (including the name) of the configuration file in your local filesystem.