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
Mock component in munit
sivachandra mandalapu
 
PPTX
Sftplite
sivachandra mandalapu
 
PPTX
Jms selector
sivachandra mandalapu
 
PPTX
Basic example using for each component
prudhvivreddy
 
PPT
Mule with spring security manager
Son Nguyen
 
PPTX
Collection aggregator
sivachandra mandalapu
 
PPTX
Basic example using message properties component
prudhvivreddy
 
PPTX
How to use splitter component
RaviRajuRamaKrishna
 
Mock component in munit
sivachandra mandalapu
 
Jms selector
sivachandra mandalapu
 
Basic example using for each component
prudhvivreddy
 
Mule with spring security manager
Son Nguyen
 
Collection aggregator
sivachandra mandalapu
 
Basic example using message properties component
prudhvivreddy
 
How to use splitter component
RaviRajuRamaKrishna
 

What's hot (13)

PPTX
Reference exception strategy
sivachandra mandalapu
 
PPTX
Validate json schema
sivachandra mandalapu
 
PPTX
Property place holder
sivachandra mandalapu
 
PPTX
Defining global exception strategies
sivachandra mandalapu
 
PPTX
How to use message properties component
mdfkhan625
 
ODP
Howtouseforeachcomponent
akshay yeluru
 
PPTX
Message properties component in Mule
Khan625
 
PPTX
Filter expression in mule
Rajkattamuri
 
PPTX
Quartz component in mule
javeed_mhd
 
PPTX
Mule flow overview
Son Nguyen
 
PPTX
Splitter
sivachandra mandalapu
 
PPTX
Mule flow complete
Son Nguyen
 
PPTX
Message properties component in mule
javeed_mhd
 
Reference exception strategy
sivachandra mandalapu
 
Validate json schema
sivachandra mandalapu
 
Property place holder
sivachandra mandalapu
 
Defining global exception strategies
sivachandra mandalapu
 
How to use message properties component
mdfkhan625
 
Howtouseforeachcomponent
akshay yeluru
 
Message properties component in Mule
Khan625
 
Filter expression in mule
Rajkattamuri
 
Quartz component in mule
javeed_mhd
 
Mule flow overview
Son Nguyen
 
Mule flow complete
Son Nguyen
 
Message properties component in mule
javeed_mhd
 
Ad

Similar to Object store (11)

PPTX
Mule object stores
Krishna_in
 
PPTX
Object store
chandu1443
 
PPTX
Mule object store
Bhanu Chandra Nalleboyina
 
PPTX
Creating custom object store
Rahul Kumar
 
PPTX
Learn More About Object Store | MuleSoft Mysore Meetup #9
MysoreMuleSoftMeetup
 
PPT
MuleSoft ESB Object Store
akashdprajapati
 
PDF
MuleSoft Surat Virtual Meetup#18 - Persistent Queue, Object Store and Persist...
Jitendra Bafna
 
PPT
Object Store in Mule
D.Rajesh Kumar
 
PPTX
Dataweave Libraries and ObjectStore
Vikalp Bhalia
 
PPTX
Object Store
MuleSoft
 
PPTX
Mule Salesforce Connector
Ankush Sharma
 
Mule object stores
Krishna_in
 
Object store
chandu1443
 
Mule object store
Bhanu Chandra Nalleboyina
 
Creating custom object store
Rahul Kumar
 
Learn More About Object Store | MuleSoft Mysore Meetup #9
MysoreMuleSoftMeetup
 
MuleSoft ESB Object Store
akashdprajapati
 
MuleSoft Surat Virtual Meetup#18 - Persistent Queue, Object Store and Persist...
Jitendra Bafna
 
Object Store in Mule
D.Rajesh Kumar
 
Dataweave Libraries and ObjectStore
Vikalp Bhalia
 
Object Store
MuleSoft
 
Mule Salesforce Connector
Ankush Sharma
 
Ad

More from sivachandra mandalapu (20)

PPTX
How to use SFTP
sivachandra mandalapu
 
PPTX
How to use secure property placeholder
sivachandra mandalapu
 
PPTX
Specifying a default exception strategy
sivachandra mandalapu
 
PPTX
Validation
sivachandra mandalapu
 
PPTX
Cloud hub deployment
sivachandra mandalapu
 
PPTX
Securing api with_o_auth2
sivachandra mandalapu
 
PPTX
Deployment options for mule applications
sivachandra mandalapu
 
PPTX
Setting up organization with api access
sivachandra mandalapu
 
PPTX
API gateway setup
sivachandra mandalapu
 
PPTX
Expression
sivachandra mandalapu
 
PPTX
Bean as Datasource
sivachandra mandalapu
 
PPTX
Synchronous communication using jms back channel
sivachandra mandalapu
 
PPTX
Salesforce
sivachandra mandalapu
 
PPTX
Data Mapper
sivachandra mandalapu
 
PPTX
Wildcard Filter
sivachandra mandalapu
 
PPTX
Soap Component
sivachandra mandalapu
 
PPTX
Rest Component
sivachandra mandalapu
 
PPTX
Integration with dropbox using mule esb
sivachandra mandalapu
 
PPTX
Integration of mule esb with microsoft azure
sivachandra mandalapu
 
How to use SFTP
sivachandra mandalapu
 
How to use secure property placeholder
sivachandra mandalapu
 
Specifying a default exception strategy
sivachandra mandalapu
 
Cloud hub deployment
sivachandra mandalapu
 
Securing api with_o_auth2
sivachandra mandalapu
 
Deployment options for mule applications
sivachandra mandalapu
 
Setting up organization with api access
sivachandra mandalapu
 
API gateway setup
sivachandra mandalapu
 
Bean as Datasource
sivachandra mandalapu
 
Synchronous communication using jms back channel
sivachandra mandalapu
 
Wildcard Filter
sivachandra mandalapu
 
Soap Component
sivachandra mandalapu
 
Rest Component
sivachandra mandalapu
 
Integration with dropbox using mule esb
sivachandra mandalapu
 
Integration of mule esb with microsoft azure
sivachandra mandalapu
 

Recently uploaded (20)

PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
CDH. pptx
AneetaSharma15
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
CDH. pptx
AneetaSharma15
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 

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>