Skip to content

Instantly share code, notes, and snippets.

@rossmason
rossmason / gist:1999414
Created March 8, 2012 07:33 — forked from germanrsolis/gist:1416807
xa-gist-4
<?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:spring="http://www.springframework.org/schema/beans" xmlns:jdbc="http://www.mulesoft.org/schema/mule/jdbc"
xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:test="http://www.mulesoft.org/schema/mule/test" xmlns:context="http://www.springframework.org/schema/context"
xmlns:jbossts="http://www.mulesoft.org/schema/mule/jbossts"
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/jdbc http://www.mulesoft.org/schema/mule/jdbc/3.2/mule-jdbc.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.2/mule-jms.xsd
mvn archetype:generate -DarchetypeGroupId=org.mule.tools.devkit -DarchetypeArtifactId=mule-devkit-archetype-generic -DarchetypeVersion=3.0.1 -DarchetypeRepository=http://repository.mulesoft.org/releases/ -DgroupId=org.mule.module.googlemaps -DartifactId=google-maps-connector -Dversion=1.0 -DmuleVersion=3.2.0 -DmuleModuleName=GoogleMaps
@rossmason
rossmason / gist:1335965
Created November 3, 2011 07:13 — forked from ddossot/gist:1294350
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/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/pubsubhubbub http://www.mulesoft.org/schema/mule/pubsubhubbub/3.2/mule-pubsubhubbub.xsd
@rossmason
rossmason / gist:1297649
Created October 19, 2011 07:06 — forked from ddossot/gist:1260603
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" field="my_field" />
@rossmason
rossmason / gist:1297643
Created October 19, 2011 07:02 — forked from ddossot/gist:1260622
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.rugby</redis:channel>
</redis:channels>
<flow name="choiceFlow">
<description>
Flow that shows the use of the choice element for content-based routing
<description>
<jms:inbound-endpoint queue="in"/>
<choice>
<when expression="/element/@name = 'foo'" evaluator="xpath">
<jms:outbound-endpoint queue="fooQueue"/>
</when>
<when expression="/element/@name = 'bar'" evaluator="xpath">
<bridge name="nasdaqCompositePoller" exchange-pattern="one-way">
<poll frequency="360000">
<outbound-endpoint address="${nasdaq.composite.feed.url}" />
</poll>
<amqp:outbound-endpoint ref="financialExchange"
routingKey="stockmarket.nasdaq.composite" />
</bridge>
<?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:amqp="http://www.mulesoft.org/schema/mule/amqp"
xmlns:file="http://www.mulesoft.org/schema/mule/file"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/3.1/mule-file.xsd