How to use JMS Selector
03-04-2017
Abstract
• You can set a JMS selector as a filter on an
inbound endpoint. The JMS selector simply
sets the filter expression on the JMS
consumer.
Jms selector
• .mflow
• <?xml version="1.0" encoding="UTF-8"?>
• <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
• xmlns:spring="http://www.springframework.org/schema/beans"
• xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
• xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
• http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
• http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd
• http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd">
• <jms:activemq-connector name="Active_MQ" brokerURL="tcp://localhost:61616" validateConnections="true" doc:name="Active MQ"/>
• <flow name="JMSFlow" >
• <poll doc:name="Poll">
• <fixed-frequency-scheduler frequency="10" timeUnit="SECONDS"/>
• <set-payload value="Flow1" doc:name="Set Payload"/>
• </poll>
• <jms:outbound-endpoint queue="myqueue" connector-ref="Active_MQ" doc:name="JMS">
• <set-property propertyName="MULE_CORRELATION_ID" value="1234"></set-property>
• </jms:outbound-endpoint>
• </flow>
• <flow name="JMSFlow1">
• <jms:inbound-endpoint queue="myqueue" connector-ref="Active_MQ" doc:name="JMS">
• <jms:selector expression="JMSCorrelationID='1234'"/>
• </jms:inbound-endpoint>
• <logger message="#[payload]----------" level="INFO" doc:name="Logger"/>
• </flow>
• </mule>
• Output:
• Reference:
• https://docs.mulesoft.com/mule-user-
guide/v/3.5/jms-transport-reference

More Related Content

PPTX
Jms selector
PPTX
Object store
PPTX
PPTX
Mule flow overview
PPTX
Reference exception strategy
PPTX
Basic example using database component
PPTX
PPTX
Specifying a default exception strategy
Jms selector
Object store
Mule flow overview
Reference exception strategy
Basic example using database component
Specifying a default exception strategy

What's hot (13)

PPTX
Defining global exception strategies
PPTX
Collection aggregator
PPTX
Validate json schema
PPTX
Property place holder
PPTX
How to use wildcard filter
PPTX
Filter expression in mule
PPTX
How to use expression filter
PPTX
Expression filter in Mule
PPTX
PPTX
PPTX
Basic example using choice component
PPTX
Wildcard Filter
PPTX
Custom filters in mule soft
Defining global exception strategies
Collection aggregator
Validate json schema
Property place holder
How to use wildcard filter
Filter expression in mule
How to use expression filter
Expression filter in Mule
Basic example using choice component
Wildcard Filter
Custom filters in mule soft
Ad

Similar to Jms selector (20)

PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
Expression Filters
PPTX
Filter expression
PPTX
Filter expression
 
PPTX
Filter expression in mule
PPTX
Filter expression
PPTX
How to use processor chain
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
How to use expression filter
PPTX
Expression filter in Mule
PPTX
How to use expression filter
How to use expression filter
How to use expression filter
How to use expression filter
How to use expression filter
How to use expression filter
How to use expression filter
Expression Filters
Filter expression
Filter expression
 
Filter expression in mule
Filter expression
How to use processor chain
How to use message properties component
How to use message properties component
How to use message properties component
How to use message properties component
How to use expression filter
Expression filter in Mule
Ad

More from RaviRajuRamaKrishna (12)

PPTX
Mock component in munit
PPTX
PPTX
Object store
PPTX
How to use splitter component
PPTX
How to use rest component
PPTX
How to use soap component
PPTX
How to use salesforce cloud connector
PPTX
How to use not filter
PPTX
How to use or filter
PPTX
How to use and filter
PPTX
How to use data mapper transformer
PPTX
How to use bean as datasource in database connector
Mock component in munit
Object store
How to use splitter component
How to use rest component
How to use soap component
How to use salesforce cloud connector
How to use not filter
How to use or filter
How to use and filter
How to use data mapper transformer
How to use bean as datasource in database connector

Recently uploaded (20)

PDF
advance database management system book.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
Computer Architecture Input Output Memory.pptx
PDF
IGGE1 Understanding the Self1234567891011
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
HVAC Specification 2024 according to central public works department
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
advance database management system book.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
LDMMIA Reiki Yoga Finals Review Spring Summer
Virtual and Augmented Reality in Current Scenario
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Hazard Identification & Risk Assessment .pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
AI-driven educational solutions for real-life interventions in the Philippine...
FORM 1 BIOLOGY MIND MAPS and their schemes
Environmental Education MCQ BD2EE - Share Source.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Computer Architecture Input Output Memory.pptx
IGGE1 Understanding the Self1234567891011
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
HVAC Specification 2024 according to central public works department
Practical Manual AGRO-233 Principles and Practices of Natural Farming

Jms selector

  • 1. How to use JMS Selector 03-04-2017
  • 2. Abstract • You can set a JMS selector as a filter on an inbound endpoint. The JMS selector simply sets the filter expression on the JMS consumer.
  • 4. • .mflow • <?xml version="1.0" encoding="UTF-8"?> • <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" • xmlns:spring="http://www.springframework.org/schema/beans" • xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" • xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd • http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd • http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd • http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd"> • <jms:activemq-connector name="Active_MQ" brokerURL="tcp://localhost:61616" validateConnections="true" doc:name="Active MQ"/> • <flow name="JMSFlow" > • <poll doc:name="Poll"> • <fixed-frequency-scheduler frequency="10" timeUnit="SECONDS"/> • <set-payload value="Flow1" doc:name="Set Payload"/> • </poll> • <jms:outbound-endpoint queue="myqueue" connector-ref="Active_MQ" doc:name="JMS"> • <set-property propertyName="MULE_CORRELATION_ID" value="1234"></set-property> • </jms:outbound-endpoint> • </flow> • <flow name="JMSFlow1"> • <jms:inbound-endpoint queue="myqueue" connector-ref="Active_MQ" doc:name="JMS"> • <jms:selector expression="JMSCorrelationID='1234'"/> • </jms:inbound-endpoint> • <logger message="#[payload]----------" level="INFO" doc:name="Logger"/> • </flow> • </mule>