MULE JMS
JMS is an attractive option for application
integration. If you’re working in a Java
environment and have control over the network
between your applications, using JMS makes a lot
of sense—it’s asynchronous, secure, reliable, and
often very fast. It also gives you the ability to work
with arbitrary data payloads, in a purely Java
environment you can even pass around serialized
objects.
The JMS transport can be used to send and
receive JMS messages on queues and topics,
using either the 1.0.2b or 1.1 versions of the JMS
spec.
Mule doesn’t implement a JMS server, so
you’ll use the JMS transport in conjunction with a
JMS implementation such as ActiveMQ, OpenMQ,
or Tibco EMS.
Configuring JMS with your broker can
sometimes be a tricky proposition. As such, Mule
provides a wealth of options for JMS connectors
and endpoints to play nicely with the JMS
implementation at hand.
The JMS transport will create the specific type
of JMS message based on the source data. A
byte array will be instantiated as a BytesMessage ,
a Map will become a Map-Message, an
InputStream into a StreamMessage and a String
into a TextMessage, as we’ve just seen. If no
better match is found, and the object implements
Serializable, then an ObjectMessage will be
created.
Sending messages to a queue is just as easy.
We simply change the topic attribute to the queue
attribute in the JMS outbound endpoint
configuration to look like this:
<jms:outbound-endpoint queue="backup-reports"/>
Messages now sent through this endpoint will
be placed on a queue called backup-reports. If
you’re using the 1.0.2b JMS specification, you’ll
need a separate connector for queues and topics,
and then reference this connector on each
endpoint.
JMS topics support durable subscribers.
Messages for a durable subscriber will be queued
on the JMS broker when the subscriber is
unavailable. When the subscriber comes back
online, the missed messages will be delivered. You
have the ability to enable this behavior on an
inbound endpoint. This is accomplished by
configuring the connector for durability, as follows:
<jms:activemq-connector
name="jmsConnector"
specification="1.1“
brokerURL="tcp://localhost:61616"
durable="true" />
Filters can be used on JMS endpoints to be
selective about the messages they consume. This
is analogous to how we used filters on the file
inbound endpoint discussed previously. JMS
inbound-endpoint filters use the JMS selector
facility to accomplish this.
THANK YOU

More Related Content

PPTX
PPTX
Introduction java messaging services
PPTX
Jms queue
PPTX
M messaging 1
PPTX
Controlling Message Flow - Mule ESB
PPTX
Using seda in mule
PPTX
Reliable messaging pattern
PPTX
M messaging 2
Introduction java messaging services
Jms queue
M messaging 1
Controlling Message Flow - Mule ESB
Using seda in mule
Reliable messaging pattern
M messaging 2

What's hot (20)

PPT
Axis2, middleware for next generation web services
PPTX
Mule jms queues
PPTX
Mule splitters
PPTX
Splitters in mule
PPTX
Synchronous communication using jms back channel
PPTX
Mule esb transformers
PPTX
Indianapolis mule soft_meetup_12_june_2021
PDF
Understanding JMS Integration Patterns
PPTX
Using groovy in mule
PPTX
Mule esb
PPT
Simple VM in Mule
PPTX
Controlling message flow
PPTX
Mule Message Properties Component
PPTX
Mule core concepts
PPTX
Concepts in mule
PPTX
Core concepts in mule
PPTX
Mule soa
PPTX
Scatter gather in mule
DOCX
Optimal client server assignment for internet distributed systems
Axis2, middleware for next generation web services
Mule jms queues
Mule splitters
Splitters in mule
Synchronous communication using jms back channel
Mule esb transformers
Indianapolis mule soft_meetup_12_june_2021
Understanding JMS Integration Patterns
Using groovy in mule
Mule esb
Simple VM in Mule
Controlling message flow
Mule Message Properties Component
Mule core concepts
Concepts in mule
Core concepts in mule
Mule soa
Scatter gather in mule
Optimal client server assignment for internet distributed systems
Ad

Similar to Mule with jms (20)

PPTX
About jms
PDF
Introduction tojms
PPT
Jms topics
ODP
Apache ActiveMQ and Apache Camel
PPTX
Mule jms-topics
PPTX
Jms topics
PPTX
Jms introduction
PDF
JMS - Java Messaging Service
PDF
Ranker jms implementation
PPTX
Mule JMS Transport
PDF
4Developers: Dominik Przybysz- Message Brokers
PDF
Enterprise Messaging With ActiveMQ and Spring JMS
PPT
Java Messaging Service
PPTX
Jms queues
PPTX
Mulesoft Basics and Connector Details
PPTX
Mulesoftconnectors
About jms
Introduction tojms
Jms topics
Apache ActiveMQ and Apache Camel
Mule jms-topics
Jms topics
Jms introduction
JMS - Java Messaging Service
Ranker jms implementation
Mule JMS Transport
4Developers: Dominik Przybysz- Message Brokers
Enterprise Messaging With ActiveMQ and Spring JMS
Java Messaging Service
Jms queues
Mulesoft Basics and Connector Details
Mulesoftconnectors
Ad

More from kiranvanga (10)

PPTX
Mule transformers
PPTX
Mule flows
PPTX
Mule execution units
PPTX
Mule introduction
PPTX
Mule working with components
PPTX
Imap connector
PPTX
Hdfs connector
PPTX
Ajax connector
PPTX
Sftp connector
PPTX
Ftp connector
Mule transformers
Mule flows
Mule execution units
Mule introduction
Mule working with components
Imap connector
Hdfs connector
Ajax connector
Sftp connector
Ftp connector

Recently uploaded (20)

DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Introduction to pro and eukaryotes and differences.pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
Complications of Minimal Access-Surgery.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PPTX
20th Century Theater, Methods, History.pptx
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
International_Financial_Reporting_Standa.pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
advance database management system book.pdf
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
Empowerment Technology for Senior High School Guide
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Introduction to pro and eukaryotes and differences.pptx
Unit 4 Computer Architecture Multicore Processor.pptx
Complications of Minimal Access-Surgery.pdf
What if we spent less time fighting change, and more time building what’s rig...
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
20th Century Theater, Methods, History.pptx
A powerpoint presentation on the Revised K-10 Science Shaping Paper
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
International_Financial_Reporting_Standa.pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
advance database management system book.pdf
B.Sc. DS Unit 2 Software Engineering.pptx
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Chinmaya Tiranga quiz Grand Finale.pdf
Virtual and Augmented Reality in Current Scenario
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Empowerment Technology for Senior High School Guide

Mule with jms

  • 2. JMS is an attractive option for application integration. If you’re working in a Java environment and have control over the network between your applications, using JMS makes a lot of sense—it’s asynchronous, secure, reliable, and often very fast. It also gives you the ability to work with arbitrary data payloads, in a purely Java environment you can even pass around serialized objects. The JMS transport can be used to send and receive JMS messages on queues and topics, using either the 1.0.2b or 1.1 versions of the JMS spec.
  • 3. Mule doesn’t implement a JMS server, so you’ll use the JMS transport in conjunction with a JMS implementation such as ActiveMQ, OpenMQ, or Tibco EMS. Configuring JMS with your broker can sometimes be a tricky proposition. As such, Mule provides a wealth of options for JMS connectors and endpoints to play nicely with the JMS implementation at hand.
  • 4. The JMS transport will create the specific type of JMS message based on the source data. A byte array will be instantiated as a BytesMessage , a Map will become a Map-Message, an InputStream into a StreamMessage and a String into a TextMessage, as we’ve just seen. If no better match is found, and the object implements Serializable, then an ObjectMessage will be created.
  • 5. Sending messages to a queue is just as easy. We simply change the topic attribute to the queue attribute in the JMS outbound endpoint configuration to look like this: <jms:outbound-endpoint queue="backup-reports"/> Messages now sent through this endpoint will be placed on a queue called backup-reports. If you’re using the 1.0.2b JMS specification, you’ll need a separate connector for queues and topics, and then reference this connector on each endpoint.
  • 6. JMS topics support durable subscribers. Messages for a durable subscriber will be queued on the JMS broker when the subscriber is unavailable. When the subscriber comes back online, the missed messages will be delivered. You have the ability to enable this behavior on an inbound endpoint. This is accomplished by configuring the connector for durability, as follows: <jms:activemq-connector name="jmsConnector" specification="1.1“ brokerURL="tcp://localhost:61616" durable="true" />
  • 7. Filters can be used on JMS endpoints to be selective about the messages they consume. This is analogous to how we used filters on the file inbound endpoint discussed previously. JMS inbound-endpoint filters use the JMS selector facility to accomplish this.