About Java Message Service: https://en.wikipedia.org/wiki/Jakarta_Messaging

Supported protocol: AMQPS (https://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol)

!!! After 10.4.0_24+: Dependency jar files must be downloaded (unzip) and placed in your CrushFTP ▸ plugins ▸ lib folder. Restart is required to load the new JMS-related dependency jars. Download: jms_dependency.zip(info)

1. Solace JMS AMQPS Integration

About Solace JMS : https://docs.solace.com/API/AMQP/Why-AMQP.htm

Get the AMQPS URL, user name, and password for JMSTask's JNDI config from the Solace Broker Management.

JMS (Java Message Service)/jms_amqp.png

2. JMSTask configuration:

2.1 JNDI config: Variable replacement is supported.

About Java Naming and Directory Interface: https://en.wikipedia.org/wiki/Java_Naming_and_Directory_Interface
It stores the connection settings and required destinations (Topic and Queue).

JMS (Java Message Service)/jms_jndi_config.png

Configuration example:
# Context Factory

# Secured AMQP Host 

#User name and password
#Topic name

2.2 Producer Mode:

Sends messages to the given destination topic or queue.

JMS (Java Message Service)/JMSTask.png

1. Destination name: Name of the Topic or Queue configured on JNDI config. Variable replacement is supported (CrushTaskVariables).

2. Advanced Options:

Persistent: Delivery mode Persistent means the message is not lost when a messaging provider goes down for any reason and comes up again.
Time to live: When the message is published, the specified time to live is added to the current time to give the expiration time
Priority: There are 10 priority levels, 0 to 9. As per the JMS standard, a message with priority 0-4 is the normal priority, and 5-9 is considered an expedited priority.

3. Message Type: Custom Message: Send a custom message to the destination as text or binary. Variable replacement is also supported. You can loop through incoming files and send as many custom messages with file-related pieces of information like name, path, or URL.

4. Message Type: Send files: It sends the file content in binary mode. Max file size allowed: 10 MB.

2.3 Consumer Mode:

Receive messages from the given destination topic or queue.

JMS (Java Message Service)/jms_consumer_mode.png
1. Destination name: Name of the Topic or Queue configured on JNDI config. Variable replacement is supported (CrushTaskVariables).

2. Message settings: Limit the number of messages, and control the read timeout of message reading.

3. Store settings: It saves the message (less than 10MB) as a file to the given location. Provide the file name and make it unique to avoid overwriting. Variable replacement is supported.
Message-related variables:
{message_id}, {message_priority}, {message_expiration}, {message_type}, {message_correlation_id}, {message_reply_to} 

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
JMSTask.png 165.7 kB 4 07-Feb-2023 06:04 krivacsz
jms_amqp.png 111.6 kB 5 30-Jan-2023 12:51 krivacsz
jms_consumer_mode.png 156.6 kB 1 07-Feb-2023 07:35 krivacsz
jms_dependency.zip 4,510.7 kB 1 02-Jun-2023 01:49 krivacsz Added JMS dependency jars
jms_jndi_config.png 132.1 kB 1 07-Feb-2023 05:47 krivacsz
« This page (revision-111) was last changed on 02-Jun-2023 01:59 by krivacsz
G’day (anonymous guest)
CrushFTP10 | What's New

Referenced by