Skip to content

Instantly share code, notes, and snippets.

View ddossot's full-sized avatar
:shipit:
s̴̝̺̫͖̞͛̑͆̀̽̕ḩ̵͌̀͘í̴̝̰͉̒́̐͗p̶̯͍͎͒̿́̈́̕

David Dossot ddossot

:shipit:
s̴̝̺̫͖̞͛̑͆̀̽̕ḩ̵͌̀͘í̴̝̰͉̒́̐͗p̶̯͍͎͒̿́̈́̕
View GitHub Profile
@ddossot
ddossot / mule-agent-based-sync-http-request-handling.xml
Created October 25, 2011 22:59
mule-agent-based-sync-http-request-handling
<?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" />
@ddossot
ddossot / gist:1294350
Created October 18, 2011 00:50
push-mule-config
<?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
@ddossot
ddossot / gist:1276439
Created October 10, 2011 20:35
Mule Redis Namespace
<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">
@ddossot
ddossot / gist:1276414
Created October 10, 2011 20:27
mule-module-redis Maven dependency
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-redis</artifactId>
<version>3.2.0</version>
</dependency>
@ddossot
ddossot / gist:1276409
Created October 10, 2011 20:24
muleforge-releases Maven config
<repositories>
<repository>
<id>muleforge-releases</id>
<name>MuleForge Repository</name>
<url>https://repository.mulesoft.org/releases/</url>
<layout>default</layout>
</repsitory>
</repositories>
@ddossot
ddossot / gist:1260669
Created October 4, 2011 00:54
Mule Redis OS until-successful
<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"
@ddossot
ddossot / gist:1260622
Created October 4, 2011 00:29
Mule Redis PubSub
<!-- 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>
@ddossot
ddossot / gist:1260611
Created October 4, 2011 00:21
Mule Redis Cnx Full
<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"
@ddossot
ddossot / gist:1260609
Created October 4, 2011 00:19
Mule Redis Cnx Local
<redis:config />
@ddossot
ddossot / gist:1260603
Created October 4, 2011 00:15
Mule Redis DS Ops
<!-- 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"