SlideShare a Scribd company logo
1 of 8
How to use Poll scope
17-05-2015
Abstract
• The main motto of this PPT is How to use Poll
scope in our applications.
Introduction
• While some connectors, such
as HTTP and FTP, utilize a polling process to
actively retrieve messages from an external
resource, most message processors in Mule
are triggered when called by a previous
element in a flow. If you want to arrange for a
message processor to actively call a resource
at regular intervals, use a Poll scope.
Example
.mflow
• <?xml version="1.0" encoding="UTF-8"?>
• <mule 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" version="EE-
3.4.0" 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">
• <flow name="PollFlow1" doc:name="PollFlow1">
• <poll frequency="10000" doc:name="Poll">
• <logger level="INFO" doc:name="Logger" message="Hi"/>
• </poll>
• <logger message="Friend" level="INFO" doc:name="Logger"/>
• </flow>
• </mule>
• Output:
• + Started app 'Poll' +
• ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
• INFO 2016-05-17 17:38:24,996 [[Poll].connector.polling.mule.default.receiver.01]
org.mule.api.processor.LoggerMessageProcessor: Hi
• INFO 2016-05-17 17:38:25,019 [[Poll].PollFlow1.stage1.02]
org.mule.api.processor.LoggerMessageProcessor: Friend
• INFO 2016-05-17 17:38:34,486 [[Poll].connector.polling.mule.default.receiver.01]
org.mule.api.processor.LoggerMessageProcessor: Hi
• INFO 2016-05-17 17:38:34,488 [[Poll].PollFlow1.stage1.02]
org.mule.api.processor.LoggerMessageProcessor: Friend
• INFO 2016-05-17 17:38:44,486 [[Poll].connector.polling.mule.default.receiver.01]
org.mule.api.processor.LoggerMessageProcessor: Hi
• INFO 2016-05-17 17:38:44,490 [[Poll].PollFlow1.stage1.02]
org.mule.api.processor.LoggerMessageProcessor: Friend
• INFO 2016-05-17 17:38:54,486 [[Poll].connector.polling.mule.default.receiver.01]
org.mule.api.processor.LoggerMessageProcessor: Hi
• INFO 2016-05-17 17:38:54,488 [[Poll].PollFlow1.stage1.02]
org.mule.api.processor.LoggerMessageProcessor: Friend
• INFO 2016-05-17 17:39:04,487 [[Poll].connector.polling.mule.default.receiver.01]
org.mule.api.processor.LoggerMessageProcessor: Hi
• INFO 2016-05-17 17:39:04,491 [[Poll].PollFlow1.stage1.02]
org.mule.api.processor.LoggerMessageProcessor: Friend
• Flow of execution:
1. It automatically triggers for every 10sec and
displays content of 2 loggers in console
References
• https://docs.mulesoft.com/mule-user-
guide/v/3.7/poll-reference

More Related Content

What's hot (15)

Using parse template component
Using parse template componentUsing parse template component
Using parse template component
 
File component
File componentFile component
File component
 
Wildcard Filter
Wildcard FilterWildcard Filter
Wildcard Filter
 
How to use or filter
How to use or filterHow to use or filter
How to use or filter
 
How to use and filter
How to use and filterHow to use and filter
How to use and filter
 
Data Mapper
Data MapperData Mapper
Data Mapper
 
How to use not filter
How to use not filterHow to use not filter
How to use not filter
 
Message enricher in mule
Message enricher in muleMessage enricher in mule
Message enricher in mule
 
Splitter
SplitterSplitter
Splitter
 
Sqlmap
SqlmapSqlmap
Sqlmap
 
Validate json schema
Validate json schemaValidate json schema
Validate json schema
 
Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2
 
Mule scopes foreach_scope
Mule scopes foreach_scopeMule scopes foreach_scope
Mule scopes foreach_scope
 
Specifying a default exception strategy
Specifying a default exception strategySpecifying a default exception strategy
Specifying a default exception strategy
 
Collection aggregator
Collection aggregatorCollection aggregator
Collection aggregator
 

Viewers also liked

Integrate mule esb with microsoft office 365 share point
Integrate mule esb with microsoft office 365 share pointIntegrate mule esb with microsoft office 365 share point
Integrate mule esb with microsoft office 365 share pointsivachandra mandalapu
 
Defining global exception strategies
Defining global exception strategiesDefining global exception strategies
Defining global exception strategiessivachandra mandalapu
 
Integration with dropbox using mule esb
Integration with dropbox using mule esbIntegration with dropbox using mule esb
Integration with dropbox using mule esbsivachandra mandalapu
 

Viewers also liked (20)

Not Filter
Not FilterNot Filter
Not Filter
 
Bean as Datasource
Bean as DatasourceBean as Datasource
Bean as Datasource
 
Cloud hub deployment
Cloud hub deploymentCloud hub deployment
Cloud hub deployment
 
Dockerizing mule soft esb
Dockerizing mule soft esbDockerizing mule soft esb
Dockerizing mule soft esb
 
How to use jms outbound endpoint
How to use jms outbound endpointHow to use jms outbound endpoint
How to use jms outbound endpoint
 
How to use IMAP endpoint
How to use IMAP endpointHow to use IMAP endpoint
How to use IMAP endpoint
 
Integrate mule esb with microsoft office 365 share point
Integrate mule esb with microsoft office 365 share pointIntegrate mule esb with microsoft office 365 share point
Integrate mule esb with microsoft office 365 share point
 
Securing api with_o_auth2
Securing api with_o_auth2Securing api with_o_auth2
Securing api with_o_auth2
 
How to use processor chain
How to use processor chainHow to use processor chain
How to use processor chain
 
How to use parse template
How to use parse templateHow to use parse template
How to use parse template
 
How to read json message payload
How to read json message payloadHow to read json message payload
How to read json message payload
 
How to use attachment transformer
How to use attachment transformerHow to use attachment transformer
How to use attachment transformer
 
How to use message enricher
How to use message enricherHow to use message enricher
How to use message enricher
 
Sap
SapSap
Sap
 
How to use web service consumer
How to use web service consumerHow to use web service consumer
How to use web service consumer
 
Soap Component
Soap ComponentSoap Component
Soap Component
 
Defining global exception strategies
Defining global exception strategiesDefining global exception strategies
Defining global exception strategies
 
Integration with dropbox using mule esb
Integration with dropbox using mule esbIntegration with dropbox using mule esb
Integration with dropbox using mule esb
 
How to use batch component
How to use batch componentHow to use batch component
How to use batch component
 
Mule esb with amazon s3 Integration
Mule esb with amazon s3 IntegrationMule esb with amazon s3 Integration
Mule esb with amazon s3 Integration
 

Similar to How to use poll scope

How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filterSunil Komarapu
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filterAnand kalla
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filterKhasim Saheb
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in MuleMohammed246
 
Mule- File component example
Mule- File component exampleMule- File component example
Mule- File component exampleDivyaSree1391
 
How to use expression filter
How to use expression filter How to use expression filter
How to use expression filter Praneethchampion
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filtermdfkhan625
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filterirfan1008
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filterprinceirfancivil
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filterPhaniu
 
File component in mule
File component in muleFile component in mule
File component in mulejaveed_mhd
 
File component
File component File component
File component F K
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in mulejaveed_mhd
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in muleRajkattamuri
 
Filter expression
Filter expression Filter expression
Filter expression F K
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties componentprinceirfancivil
 

Similar to How to use poll scope (20)

How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filter
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filter
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filter
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in Mule
 
Mule- File component example
Mule- File component exampleMule- File component example
Mule- File component example
 
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 filterHow to use expression filter
How to use expression filter
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filter
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filter
 
How to use expression filter
How to use expression filterHow to use expression filter
How to use expression filter
 
File component in mule
File component in muleFile component in mule
File component in mule
 
File component
File component File component
File component
 
Mule File component
Mule File component Mule File component
Mule File component
 
File component
File component File component
File component
 
Filter expression
Filter expression Filter expression
Filter expression
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in mule
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in mule
 
Filter expression
Filter expression Filter expression
Filter expression
 
Filter expression
Filter expressionFilter expression
Filter expression
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
 

More from sivachandra mandalapu (17)

Mock component in munit
Mock component in munitMock component in munit
Mock component in munit
 
Jms selector
Jms selectorJms selector
Jms selector
 
Sftplite
SftpliteSftplite
Sftplite
 
Object store
Object storeObject store
Object store
 
How to use SFTP
How to use SFTPHow to use SFTP
How to use SFTP
 
How to use secure property placeholder
How to use secure property placeholderHow to use secure property placeholder
How to use secure property placeholder
 
Reference exception strategy
Reference exception strategyReference exception strategy
Reference exception strategy
 
Validation
ValidationValidation
Validation
 
Property place holder
Property place holderProperty place holder
Property place holder
 
Deployment options for mule applications
Deployment options for mule applicationsDeployment options for mule applications
Deployment options for mule applications
 
Setting up organization with api access
Setting up organization with api accessSetting up organization with api access
Setting up organization with api access
 
API gateway setup
API gateway setupAPI gateway setup
API gateway setup
 
Expression
ExpressionExpression
Expression
 
Synchronous communication using jms back channel
Synchronous communication using jms back channelSynchronous communication using jms back channel
Synchronous communication using jms back channel
 
Salesforce
SalesforceSalesforce
Salesforce
 
Rest Component
Rest ComponentRest Component
Rest Component
 
Integration of mule esb with microsoft azure
Integration of mule esb with microsoft azureIntegration of mule esb with microsoft azure
Integration of mule esb with microsoft azure
 

Recently uploaded

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 

Recently uploaded (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

How to use poll scope

  • 1. How to use Poll scope 17-05-2015
  • 2. Abstract • The main motto of this PPT is How to use Poll scope in our applications.
  • 3. Introduction • While some connectors, such as HTTP and FTP, utilize a polling process to actively retrieve messages from an external resource, most message processors in Mule are triggered when called by a previous element in a flow. If you want to arrange for a message processor to actively call a resource at regular intervals, use a Poll scope.
  • 5. .mflow • <?xml version="1.0" encoding="UTF-8"?> • <mule 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" version="EE- 3.4.0" 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"> • <flow name="PollFlow1" doc:name="PollFlow1"> • <poll frequency="10000" doc:name="Poll"> • <logger level="INFO" doc:name="Logger" message="Hi"/> • </poll> • <logger message="Friend" level="INFO" doc:name="Logger"/> • </flow> • </mule>
  • 6. • Output: • + Started app 'Poll' + • ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ • INFO 2016-05-17 17:38:24,996 [[Poll].connector.polling.mule.default.receiver.01] org.mule.api.processor.LoggerMessageProcessor: Hi • INFO 2016-05-17 17:38:25,019 [[Poll].PollFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: Friend • INFO 2016-05-17 17:38:34,486 [[Poll].connector.polling.mule.default.receiver.01] org.mule.api.processor.LoggerMessageProcessor: Hi • INFO 2016-05-17 17:38:34,488 [[Poll].PollFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: Friend • INFO 2016-05-17 17:38:44,486 [[Poll].connector.polling.mule.default.receiver.01] org.mule.api.processor.LoggerMessageProcessor: Hi • INFO 2016-05-17 17:38:44,490 [[Poll].PollFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: Friend • INFO 2016-05-17 17:38:54,486 [[Poll].connector.polling.mule.default.receiver.01] org.mule.api.processor.LoggerMessageProcessor: Hi • INFO 2016-05-17 17:38:54,488 [[Poll].PollFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: Friend • INFO 2016-05-17 17:39:04,487 [[Poll].connector.polling.mule.default.receiver.01] org.mule.api.processor.LoggerMessageProcessor: Hi • INFO 2016-05-17 17:39:04,491 [[Poll].PollFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: Friend
  • 7. • Flow of execution: 1. It automatically triggers for every 10sec and displays content of 2 loggers in console