SlideShare a Scribd company logo
How to use Object Store
03-04-2017
Abstract
• The Object Store Connector lets you connect
to the object storage facility in Mule and
exposes convenient methods for exploiting
the capabilities of Mule Object Stores.
Internally, Mule uses object stores in various
filters, routers, and other message processors
that need to store state between messages.
Example
• .mflow
• <?xml version="1.0" encoding="UTF-8"?>
• <mule xmlns:objectstore="http://www.mulesoft.org/schema/mule/objectstore" xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz"
xmlns:http="http://www.mulesoft.org/schema/mule/http" 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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
• http://www.mulesoft.org/schema/mule/objectstore http://www.mulesoft.org/schema/mule/objectstore/current/mule-objectstore.xsd
• http://www.mulesoft.org/schema/mule/quartz http://www.mulesoft.org/schema/mule/quartz/current/mule-quartz.xsd">
• <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8089" doc:name="HTTP Listener Configuration"/>
• <objectstore:config name="ObjectStore__Connector" doc:name="ObjectStore: Connector" partition="abc"/>
• <flow name="ObjectStoreFlow">
• <quartz:inbound-endpoint jobName="myjob" repeatInterval="10000" responseTimeout="10000" doc:name="Quartz">
• <quartz:event-generator-job/>
• </quartz:inbound-endpoint>
• <logger message="---Store flow--------" level="INFO" doc:name="Logger"/>
• <expression-component doc:name="Expression"><![CDATA[import java.util.*;
• Map m1 = new HashMap();
• m1.put("Database","Connector");
• m1.put("Cache","Scope");
• m1.put("Object to String","Transformer");
• m1.put("And","Filter");
• m1.put("Choice","Flow Control");
• payload = m1;
• ]]></expression-component>
• <objectstore:store config-ref="ObjectStore__Connector" key="mule" value-ref="#[payload]" doc:name="ObjectStore" overwrite="true"/>
• </flow>
• <flow name="ObjectStoreFlow1">
• <http:listener config-ref="HTTP_Listener_Configuration" path="/objectstore" doc:name="HTTP"/>
• <logger message="---Retrive flow-------" level="INFO" doc:name="Logger"/>
• <set-variable variableName="myvariable" value="0" doc:name="Variable"/>
• <objectstore:retrieve config-ref="ObjectStore__Connector" key="mule" defaultValue-ref="#[flowVars.myvariable]" targetProperty="muleflow" targetScope="SESSION"
doc:name="ObjectStore"/>
• <logger message="----#[sessionVars.muleflow.get(message.inboundProperties.'http.query.params'.key)]---" level="INFO" doc:name="Logger"/>
• <set-payload value="#[sessionVars.muleflow.get(message.inboundProperties.'http.query.params'.key)]" doc:name="Set Payload"/>
• </flow>
• </mule>
Object store
Object store
References
• https://docs.mulesoft.com/mule-user-
guide/v/3.8/object-store-connector

More Related Content

PPTX
Object store
PPTX
Jms selector
PPTX
PPTX
Mule message processor or routers
PPT
Mule with spring security manager
PPTX
How to use processor chain
PPTX
How to use composite source
PPTX
How to use wildcard filter
Object store
Jms selector
Mule message processor or routers
Mule with spring security manager
How to use processor chain
How to use composite source
How to use wildcard filter

What's hot (16)

PPTX
How to use or filter
PPT
Mule security - spring security manager
PPTX
Choice component in mule
PPTX
For each component in mule
PPTX
Quartz component
PPTX
How to use splitter component
PPTX
How to use parse template
PPTX
How to get http query parameters in mule
PPTX
Collection aggregator
PPTX
Filter expression in mule
ODP
Howtouseforeachcomponent
PPTX
Quartz component in mule
PPTX
How to use message properties component
PPTX
Advance java session 15
PPTX
How to use message properties component
PPTX
Database component in mule
How to use or filter
Mule security - spring security manager
Choice component in mule
For each component in mule
Quartz component
How to use splitter component
How to use parse template
How to get http query parameters in mule
Collection aggregator
Filter expression in mule
Howtouseforeachcomponent
Quartz component in mule
How to use message properties component
Advance java session 15
How to use message properties component
Database component in mule
Ad

Similar to Object store (20)

PPTX
Mock component in munit
PPTX
Mock component in munit
PPTX
How to use message properties component
PPTX
Message properties component in Mule
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
How to use not filter
PPTX
How to use and filter
PPTX
Message properties component
 
PPTX
Message properties component
PPTX
Message properties component in mule
PPTX
How to use splitter component
PPTX
Quartz component
 
PPTX
Quartz component
PPTX
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 quartz component
PPTX
Mule Message Properties Component
Mock component in munit
Mock component in munit
How to use message properties component
Message properties component in Mule
How to use message properties component
How to use message properties component
How to use not filter
How to use and filter
Message properties component
 
Message properties component
Message properties component in mule
How to use splitter component
Quartz component
 
Quartz component
How to use message properties component
How to use message properties component
How to use message properties component
How to use quartz component
Mule Message Properties Component
Ad

More from RaviRajuRamaKrishna (8)

PPTX
Jms selector
PPTX
PPTX
How to use rest component
PPTX
How to use soap component
PPTX
How to use salesforce cloud connector
PPTX
How to use expression filter
PPTX
How to use data mapper transformer
PPTX
How to use bean as datasource in database connector
Jms selector
How to use rest component
How to use soap component
How to use salesforce cloud connector
How to use expression filter
How to use data mapper transformer
How to use bean as datasource in database connector

Recently uploaded (20)

PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
Classroom Observation Tools for Teachers
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
Trump Administration's workforce development strategy
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PDF
Empowerment Technology for Senior High School Guide
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
advance database management system book.pdf
PPTX
Lesson notes of climatology university.
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Cell Types and Its function , kingdom of life
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Practical Manual AGRO-233 Principles and Practices of Natural Farming
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Classroom Observation Tools for Teachers
LDMMIA Reiki Yoga Finals Review Spring Summer
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Trump Administration's workforce development strategy
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Empowerment Technology for Senior High School Guide
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Unit 4 Skeletal System.ppt.pptxopresentatiom
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
advance database management system book.pdf
Lesson notes of climatology university.
A systematic review of self-coping strategies used by university students to ...
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Weekly quiz Compilation Jan -July 25.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Cell Types and Its function , kingdom of life

Object store

  • 1. How to use Object Store 03-04-2017
  • 2. Abstract • The Object Store Connector lets you connect to the object storage facility in Mule and exposes convenient methods for exploiting the capabilities of Mule Object Stores. Internally, Mule uses object stores in various filters, routers, and other message processors that need to store state between messages.
  • 4. • .mflow • <?xml version="1.0" encoding="UTF-8"?> • <mule xmlns:objectstore="http://www.mulesoft.org/schema/mule/objectstore" xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz" xmlns:http="http://www.mulesoft.org/schema/mule/http" 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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd • http://www.mulesoft.org/schema/mule/objectstore http://www.mulesoft.org/schema/mule/objectstore/current/mule-objectstore.xsd • http://www.mulesoft.org/schema/mule/quartz http://www.mulesoft.org/schema/mule/quartz/current/mule-quartz.xsd"> • <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8089" doc:name="HTTP Listener Configuration"/> • <objectstore:config name="ObjectStore__Connector" doc:name="ObjectStore: Connector" partition="abc"/> • <flow name="ObjectStoreFlow"> • <quartz:inbound-endpoint jobName="myjob" repeatInterval="10000" responseTimeout="10000" doc:name="Quartz"> • <quartz:event-generator-job/> • </quartz:inbound-endpoint> • <logger message="---Store flow--------" level="INFO" doc:name="Logger"/> • <expression-component doc:name="Expression"><![CDATA[import java.util.*; • Map m1 = new HashMap(); • m1.put("Database","Connector"); • m1.put("Cache","Scope"); • m1.put("Object to String","Transformer"); • m1.put("And","Filter"); • m1.put("Choice","Flow Control"); • payload = m1; • ]]></expression-component> • <objectstore:store config-ref="ObjectStore__Connector" key="mule" value-ref="#[payload]" doc:name="ObjectStore" overwrite="true"/> • </flow> • <flow name="ObjectStoreFlow1"> • <http:listener config-ref="HTTP_Listener_Configuration" path="/objectstore" doc:name="HTTP"/> • <logger message="---Retrive flow-------" level="INFO" doc:name="Logger"/> • <set-variable variableName="myvariable" value="0" doc:name="Variable"/> • <objectstore:retrieve config-ref="ObjectStore__Connector" key="mule" defaultValue-ref="#[flowVars.myvariable]" targetProperty="muleflow" targetScope="SESSION" doc:name="ObjectStore"/> • <logger message="----#[sessionVars.muleflow.get(message.inboundProperties.'http.query.params'.key)]---" level="INFO" doc:name="Logger"/> • <set-payload value="#[sessionVars.muleflow.get(message.inboundProperties.'http.query.params'.key)]" doc:name="Set Payload"/> • </flow> • </mule>