Unify Integrations
Logo
JMS

JMS

Logo

3 mins READ

Java Message Service (JMS) is a Java API for sending and receiving messages between distributed systems. It provides reliable, asynchronous communication using message-oriented middleware (MOM) to facilitate decoupled, scalable, and flexible messaging solutions.

Integrating JMS enables reliable, asynchronous communication between applications, ensuring decoupling and scalability.

Authentication

Before integrating JMS, ensure you have the following information: 

  • Connection name: Choose a descriptive name for your JMS connection to help you identify it within your application or integration settings. A meaningful name, like "MyAppJMSIntegration," helps maintain organization, especially when managing multiple integrations.

  • Service name: Select the service you want to connect to: Amazon SQS, IBM MQ, Active MQ, Rabbit MQ or Generic JNDI.

  • Connection: Choose how UnifyApps reaches your service. Select Directly, or select Via On-Prem Agent and choose the On-Prem Group to use.

Amazon SQS Based

  1. Sign in to the AWS Management Console (https://console.aws.amazon.com/).

  2. Navigate to the IAM (Identity and Access Management) dashboard by searching for "IAM" in the search bar.

  3. Open Users and click "Create user" at the top right corner.

  4. Provide the username, select "Attach policies directly" and attach a policy that grants access to Amazon SQS (for example, AmazonSQSFullAccess, or a narrower policy for the queues you use). Click the create user button.

  5. Once the user is created, click on the username of the user created and under the summary section click on create access key.

  6. Select "Command Line Interface" as the use case and provide the description tag to the key and click on "create access key".

  7. Treat the access key and secret access key with high confidentiality, as they allow access to your AWS account.

  8. In the connection form, enter the Region of your Amazon SQS service, the Access key and the Secret key.

Frame 47 (1).png
Frame 47 (1).png

IBM MQ Based

Log in to IBM MQ console and navigate to the queue manager settings to find host, port, channel, and queue manager details.

  • Host: Specifies the hostname or IP address of the server where your IBM MQ instance is hosted. Example: mq.example.com or 192.168.1.10

  • Port: Defines the port number on which IBM MQ is listening for connections. 1414 (default port for IBM MQ).

  • Username: The username used to authenticate with the IBM MQ service.

  • Password: The password corresponding to the username for authentication.

  • Channel: Defines the channel name used for communication between the client and IBM MQ server.

  • Queue Manager: Identifies the queue manager that handles messaging for your IBM MQ instance.

Active MQ Based

Log in to the ActiveMQ web console and navigate to the connection or broker settings to find the host, port, and transport connector details.

  • Broker URL: The address of the ActiveMQ broker to which the agent will connect. Ensure the broker is running as an external service and configured correctly; vm:// broker connections are not supported. Example values include tcp://broker.example.com:61616 or ssl://broker.example.com:61617.

  • Maximum number of attempts: The maximum number of times a message will be redelivered before it is returned to the broker, allowing it to be routed to a Dead Letter Queue (DLQ). Set to -1 for unlimited redeliveries. Default: -1.

  • Initial redelivery delay: The delay (in seconds) before the first redelivery attempt after a message delivery failure. Default: 1.

  • Maximum delivery delay: The maximum delay (in seconds) between consecutive redelivery attempts, applied if the delay multiplier is greater than 1.0. Default: 600.

  • Delay multiplier: The multiplier used to calculate the redelivery delay between retries. Values greater than 1.0 enable exponential back-off; values less than 1.0 lead to a fixed redelivery delay. Default: 5.

Rabbit MQ Based

Log in to the RabbitMQ management console and navigate to the connection or broker settings to find the host, port, virtual host, and user credentials details.

  • Username: Enter your RabbitMQ username. Ensure the username has sufficient permissions to access the required queues and exchanges.

  • Password: Enter your RabbitMQ password for the provided username.

  • Virtual host: Enter your RabbitMQ virtual host. Virtual hosts provide a way to segregate messaging environments within a single RabbitMQ instance. Example: / or test-vhost.

  • Host name: Enter your RabbitMQ host name, the hostname or IP address where your RabbitMQ broker is running. Example: rabbitmq.example.com.

  • Port: Enter your RabbitMQ port. The default port for AMQP is 5672. For SSL/TLS connections, it is typically 5671.

Generic JNDI Based

Use Generic JNDI to connect to any JMS provider through its JNDI settings.

  • Initial context factory: Enter the class name of the initial context factory to use. Example: org.apache.activemq.jndi.ActiveMQInitialContextFactory.

  • JNDI lookup: Enter the JNDI name of the connection factory.

  • Provider URL: Enter the URL for the service provider.

  • JMS Properties: Optionally, add any extra properties as key-value pairs.

Actions 

Actions

Description

Consume message

Consume a message from JMS queue

Publish message to queue

Publish a message to a JMS queue

Triggers

Triggers

Description

On event received

Triggers when an event is received in JMS queue