2. Scripting Support
Topics :
•Sharing Data Across Mule Applications
Purpose :
- To showcase object store functionality in MuleSoft ESB.
- Using object store, Two different Mule Application shared data.
Pre-requisites :
•Basic under standing of Mule ESB
•JDK 1.8 or above
•Anypoint Studio v 6.2.1 or above
•Mule Server v 3.8.0 EE or above
3. Details :
(*) Domain Project :
Common resources are placed into this project
(*) Mule Project – 1 :
This Application can store data in the Common Shared Memory – ( Called Object Store )
(*) Mule Project – 2 :
This Application will retrieve all data which are stored in common shared memory – ( Called Object Store )
4. Flow Details : MULE_DOMAIN_PROJECT
<?xml version="1.0" encoding="UTF-8"?>
<domain:mule-domain
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:domain="http://www.mulesoft.org/schema/mule/ee/domain"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/ee/domain http://www.mulesoft.org/schema/mule/ee/domain/current/mule-domain-ee.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
<!-- configure here resource to be shared within the domain -->
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="9091" doc:name="HTTP Listener Configuration" />
<spring:beans>
<spring:bean id="mySimpleMemoryObjectStore" class="org.mule.util.store.SimpleMemoryObjectStore" />
</spring:beans>
</domain:mule-domain>