This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:http="http://www.mulesoft.org/schema/mule/http" | |
xmlns:jms="http://www.mulesoft.org/schema/mule/jms" | |
xsi:schemaLocation=" | |
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd | |
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.2/mule-http.xsd | |
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.2/mule-jms.xsd"> | |
<jms:activemq-connector name="amqConnector" specification="1.1" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:http="http://www.mulesoft.org/schema/mule/http" | |
xmlns:pubsubhubbub="http://www.mulesoft.org/schema/mule/pubsubhubbub" | |
xmlns:mos="http://www.mulesoft.org/schema/mule/mongo-object-store" | |
xsi:schemaLocation=" | |
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd | |
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.2/mule-http.xsd | |
http://www.mulesoft.org/schema/mule/pubsubhubbub http://www.mulesoft.org/schema/mule/pubsubhubbub/3.2/mule-pubsubhubbub.xsd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mule ... | |
xmlns:redis="http://www.mulesoft.org/schema/mule/redis" | |
xsi:schemaLocation=" | |
... | |
http://www.mulesoft.org/schema/mule/redis | |
http://www.mulesoft.org/schema/mule/redis/3.2/mule-redis.xsd"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.mule.modules</groupId> | |
<artifactId>mule-module-redis</artifactId> | |
<version>3.2.0</version> | |
</dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<repositories> | |
<repository> | |
<id>muleforge-releases</id> | |
<name>MuleForge Repository</name> | |
<url>https://repository.mulesoft.org/releases/</url> | |
<layout>default</layout> | |
</repsitory> | |
</repositories> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<redis:config name="localRedis" /> | |
<flow name="retrying-http-bridge"> | |
<vm:inbound-endpoint path="acme-bridge" | |
exchange-pattern="one-way" /> | |
<until-successful objectStore-ref="localRedis" | |
failureExpression="#[header:INBOUND:http.status = 202]" | |
maxRetries="6" | |
secondsBetweenRetries="600"> | |
<http:outbound-endpoint address="http://acme.com/api/flakey" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Publish the current message's payload | |
to the news.art.figurative channel --> | |
<redis:publish channel="news.art.figurative" /> | |
<!-- Subscribe to art channels, and some good sport too :) --> | |
<redis:subscribe> | |
<redis:channels> | |
<redis:channel>news.art.*</redis:channel> | |
<redis:channel>news.sport.hockey</redis:channel> | |
</redis:channels> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<spring:beans> | |
<spring:bean name="redisPoolConfiguration" | |
class="redis.clients.jedis.JedisPoolConfig" | |
p:whenExhaustedAction="#{T(org.apache.commons.pool.impl.GenericObjectPool).WHEN_EXHAUSTED_GROW}" /> | |
</spring:beans> | |
<redis:config name="localRedis" | |
host="localhost" | |
port="6379" | |
password="s3cre3t" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<redis:config /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Store the current message payload under my_key | |
with the provided TTL --> | |
<redis:set key="my_key" | |
expire="3600" /> | |
<!-- Retrieve the value --> | |
<redis:get key="my_key" /> | |
<!-- Specific data structures are supported --> | |
<redis:hash-set key="my_key" |