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 / gist:3177759
Created July 25, 2012 18:33
FedACH CXF proxy
<flow name="cxfProxy">
<http:inbound-endpoint
address="http://localhost:8080/fed-ach"
exchange-pattern="request-response">
<cxf:proxy-service
wsdlLocation="http://www.webservicex.net/FedACH.asmx?WSDL"
namespace="http://www.webservicex.net/"
service="FedACH"
payload="body" />
</http:inbound-endpoint>
@ddossot
ddossot / gist:3177626
Created July 25, 2012 18:10
FedACH web-service-proxy pattern
<pattern:web-service-proxy name="patternProxy"
inboundAddress="http://localhost:8080/fed-ach"
outboundAddress="http://www.webservicex.net/FedACH.asmx" />
@ddossot
ddossot / gist:3153787
Created July 20, 2012 23:07
before-after
{
"ip_address": ["71.63.127.143"],
"email": ["[email protected]"]
}
{
"ip_address": "71.63.127.143",
"email": "[email protected]",
"name": "David Dossot",
"company": "Dossot Software Consulting Inc.",
@ddossot
ddossot / gist:3153775
Created July 20, 2012 23:03
catch-ex-mel
<catch-exception-strategy doc:name="Catch Exception Strategy">
<expression-component doc:name="Empty Profile">
payload = [:]
</expression-component>
</catch-exception-strategy>
@ddossot
ddossot / gist:3153759
Created July 20, 2012 22:57
safe navigating idlight data
<enricher doc:name="Enrich with Profile data">
<core:flow-ref name="idlightSafeInvoker"
doc:name="Invoke IDlight" />
<enrich source="message.payload.?name.full"
target="message.payload.name" />
<enrich source="message.payload.?organizations.?get(0).name"
target="message.payload.company" />
<enrich source="message.payload.?abouts.?get(0)"
target="message.payload.about" />
</enricher>
@ddossot
ddossot / gist:3153697
Created July 20, 2012 22:38
map-single-value
<expression-transformer
expression="['email':message.payload.email[0],'ip_address':message.payload.ip_address[0]]"
doc:name="Single Values" />
@ddossot
ddossot / gist:3153668
Created July 20, 2012 22:27
Mule - Unbounce Webhooks Demo
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:json="http://www.mulesoft.org/schema/mule/json"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:core="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="CE-3.3.0"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
@ddossot
ddossot / gist:3094858
Created July 12, 2012 00:54
Mule AMQP "current" Schema Definition
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:amqp="http://www.mulesoft.org/schema/mule/amqp"
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/amqp http://www.mulesoft.org/schema/mule/amqp/current/mule-amqp.xsd">
...
@ddossot
ddossot / gist:2832308
Created May 30, 2012 01:31
Mule-powered Coderwall Facebook Bridge
<flow name="coderwallFacebookBridge">
<quartz:inbound-endpoint jobName="coderwallPollerJob"
startDelay="15000" repeatInterval="3600000">
<quartz:endpoint-polling-job>
<quartz:job-endpoint address="http://coderwall.com/${coderwall.profile}.json" />
</quartz:endpoint-polling-job>
</quartz:inbound-endpoint>
<json:json-to-object-transformer />
<expression-transformer expression="payload.get('badges')" evaluator="groovy" />
<collection-splitter />

Markdown formatted version of the plain text source document. The views expressed in this document are the original (anonymous) author's.

After reading this, read the response from 10Gen's CTO.

Don't use MongoDB

I've kept quiet for awhile for various political reasons, but I now feel a kind of social responsibility to deter people from banking their business on MongoDB.