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
$ curl http://localhost:8080/roadworks
104 geo paths for a total length of: 32392 meters.
<erlang:connector name="ErlangRabbitMqConnector"
nodeName="MuleRabbitMqController"
cookie="${rabbitmq.cookie}" />
<service name="UserProvisioningService">
<inbound>
<http:inbound-endpoint address="http://localhost:8080/rmq/users" synchronous="true">
<transformers>
<object-to-string-transformer />
<message-properties-transformer scope="session">
<add-message-property key="userDetails"
value="#[groovy:org.json.simple.JSONValue.parse(payload)]" />
</message-properties-transformer>
</transformers>
<service name="PermissionsSetterService">
<inbound>
<vm:inbound-endpoint path="rabbitmq.permissions.set"
synchronous="true" />
<selective-consumer-router>
<regex-filter pattern="ok" />
</selective-consumer-router>
<forwarding-catch-all-strategy>
<vm:outbound-endpoint path="rabbitmq.user.creation.failures"
synchronous="true" />
<service name="UserCreationErrorHandler">
<inbound>
<vm:inbound-endpoint path="rabbitmq.user.creation.failures"
synchronous="true">
<object-to-string-transformer />
</vm:inbound-endpoint>
</inbound>
<log-component />
</service>
{"username":"mule",
"password":"elum",
"vhost":"/",
"configure":".*",
"write":".*",
"read":".*"}
$ curl -d "{\"username\":\"mule\",\"password\":\"elum\",\"vhost\":\"/\",\"configure\":\".*\",\"write\":\".*\",\"read\":\".*\"}" http://localhost:8080/rmq/users
"ok"
$ curl -d "{\"username\":\"mule\",\"password\":\"elum\",\"vhost\":\"/\",\"configure\":\".*\",\"write\":\".*\",\"read\":\".*\"}" http://localhost:8080/rmq/users
"{error,{user_already_exists,{109,117,108,101}}}"
<profile>
<id>buildnumber-plugin</id>
<activation>
<property>
<!--
This profile is activated if NO system property
'skipBuildnumber' is found. Disable this profile
by specifying -DskipBuildnumber=true on the commandline
-->
<name>!skipBuildnumber</name>
<vm:inbound-endpoint path="echo" exchange-pattern="one-way"/>