SlideShare a Scribd company logo
1 of 8
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

What's hot

Axis2, middleware for next generation web services
Axis2, middleware for next generation web servicesAxis2, middleware for next generation web services
Axis2, middleware for next generation web servicesSrinath Perera
 
Mule jms queues
Mule jms queuesMule jms queues
Mule jms queuesGandham38
 
Mule splitters
Mule splittersMule splitters
Mule splittersGandham38
 
Splitters in mule
Splitters in muleSplitters in mule
Splitters in mulevasanthii9
 
Synchronous communication using jms back channel
Synchronous communication using jms back channelSynchronous communication using jms back channel
Synchronous communication using jms back channelsivachandra mandalapu
 
Indianapolis mule soft_meetup_12_june_2021
Indianapolis mule soft_meetup_12_june_2021Indianapolis mule soft_meetup_12_june_2021
Indianapolis mule soft_meetup_12_june_2021ikram_ahamed
 
Understanding JMS Integration Patterns
Understanding JMS Integration Patterns Understanding JMS Integration Patterns
Understanding JMS Integration Patterns WSO2
 
Using groovy in mule
Using groovy in muleUsing groovy in mule
Using groovy in muleSon Nguyen
 
Mule core concepts
Mule core conceptsMule core concepts
Mule core conceptsSindhu VL
 
Concepts in mule
Concepts in muleConcepts in mule
Concepts in muleSindhu VL
 
Core concepts in mule
Core concepts in muleCore concepts in mule
Core concepts in muleSindhu VL
 
Scatter gather in mule
Scatter gather in muleScatter gather in mule
Scatter gather in muleKhasim Cise
 
Optimal client server assignment for internet distributed systems
Optimal client server assignment for internet distributed systemsOptimal client server assignment for internet distributed systems
Optimal client server assignment for internet distributed systemsJPINFOTECH JAYAPRAKASH
 

What's hot (20)

Axis2, middleware for next generation web services
Axis2, middleware for next generation web servicesAxis2, middleware for next generation web services
Axis2, middleware for next generation web services
 
Mule jms queues
Mule jms queuesMule jms queues
Mule jms queues
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Splitters in mule
Splitters in muleSplitters in mule
Splitters in mule
 
Synchronous communication using jms back channel
Synchronous communication using jms back channelSynchronous communication using jms back channel
Synchronous communication using jms back channel
 
Mule esb transformers
Mule esb transformersMule esb transformers
Mule esb transformers
 
Indianapolis mule soft_meetup_12_june_2021
Indianapolis mule soft_meetup_12_june_2021Indianapolis mule soft_meetup_12_june_2021
Indianapolis mule soft_meetup_12_june_2021
 
Jms
JmsJms
Jms
 
Understanding JMS Integration Patterns
Understanding JMS Integration Patterns Understanding JMS Integration Patterns
Understanding JMS Integration Patterns
 
Using groovy in mule
Using groovy in muleUsing groovy in mule
Using groovy in mule
 
Mule esb
Mule esbMule esb
Mule esb
 
Simple VM in Mule
Simple VM in MuleSimple VM in Mule
Simple VM in Mule
 
Controlling message flow
Controlling message flowControlling message flow
Controlling message flow
 
Mule Message Properties Component
Mule Message Properties ComponentMule Message Properties Component
Mule Message Properties Component
 
Mule core concepts
Mule core conceptsMule core concepts
Mule core concepts
 
Concepts in mule
Concepts in muleConcepts in mule
Concepts in mule
 
Core concepts in mule
Core concepts in muleCore concepts in mule
Core concepts in mule
 
Mule soa
Mule soaMule soa
Mule soa
 
Scatter gather in mule
Scatter gather in muleScatter gather in mule
Scatter gather in mule
 
Optimal client server assignment for internet distributed systems
Optimal client server assignment for internet distributed systemsOptimal client server assignment for internet distributed systems
Optimal client server assignment for internet distributed systems
 

Similar to Mule with jms (20)

About jms
About jmsAbout jms
About jms
 
Mule jms-topics
Mule jms-topicsMule jms-topics
Mule jms-topics
 
Mule soft jms
Mule soft jmsMule soft jms
Mule soft jms
 
Jms topics
Jms topicsJms topics
Jms topics
 
Jms introduction
Jms introductionJms introduction
Jms introduction
 
Ppt2
Ppt2Ppt2
Ppt2
 
Jms intro
Jms introJms intro
Jms intro
 
Mulesoftconnectors
MulesoftconnectorsMulesoftconnectors
Mulesoftconnectors
 
Mulesoft Basics and Connector Details
Mulesoft Basics and Connector DetailsMulesoft Basics and Connector Details
Mulesoft Basics and Connector Details
 
Jms topics
Jms   topicsJms   topics
Jms topics
 
Jms queues
Jms queuesJms queues
Jms queues
 
Mule JMS Transport
Mule JMS TransportMule JMS Transport
Mule JMS Transport
 
Messaging in Java
Messaging in JavaMessaging in Java
Messaging in Java
 
ActiveMQ Configuration
ActiveMQ ConfigurationActiveMQ Configuration
ActiveMQ Configuration
 
Jms
JmsJms
Jms
 
Jms
JmsJms
Jms
 
Jms
JmsJms
Jms
 
Jms session (1)
Jms session (1)Jms session (1)
Jms session (1)
 
Differences between JMS and AMQP
Differences between JMS and AMQPDifferences between JMS and AMQP
Differences between JMS and AMQP
 
Apache ActiveMQ and Apache Camel
Apache ActiveMQ and Apache CamelApache ActiveMQ and Apache Camel
Apache ActiveMQ and Apache Camel
 

More from kiranvanga

Mule transformers
Mule transformersMule transformers
Mule transformerskiranvanga
 
Mule execution units
Mule execution unitsMule execution units
Mule execution unitskiranvanga
 
Mule introduction
Mule introductionMule introduction
Mule introductionkiranvanga
 
Mule working with components
Mule   working with componentsMule   working with components
Mule working with componentskiranvanga
 
Imap connector
Imap connectorImap connector
Imap connectorkiranvanga
 
Hdfs connector
Hdfs connectorHdfs connector
Hdfs connectorkiranvanga
 
Ajax connector
Ajax connectorAjax connector
Ajax connectorkiranvanga
 
Sftp connector
Sftp connectorSftp connector
Sftp connectorkiranvanga
 

More from kiranvanga (10)

Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule flows
Mule flowsMule flows
Mule flows
 
Mule execution units
Mule execution unitsMule execution units
Mule execution units
 
Mule introduction
Mule introductionMule introduction
Mule introduction
 
Mule working with components
Mule   working with componentsMule   working with components
Mule working with components
 
Imap connector
Imap connectorImap connector
Imap connector
 
Hdfs connector
Hdfs connectorHdfs connector
Hdfs connector
 
Ajax connector
Ajax connectorAjax connector
Ajax connector
 
Sftp connector
Sftp connectorSftp connector
Sftp connector
 
Ftp connector
Ftp connectorFtp connector
Ftp connector
 

Recently uploaded

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 

Recently uploaded (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 

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.