This file contains 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
I, Chad Gorshing, have read and do accept the MuleSoft Contributor Agreement | |
at http://www.mulesoft.org/legal/contributor-agreement.html | |
Accepted on Fri Mar 25 2016 14:44:22 GMT-0500 (CDT) |
This file contains 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"?> | |
<beans | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns="http://www.springframework.org/schema/beans" | |
xmlns:http="http://cxf.apache.org/transports/http/configuration" | |
xmlns:sec="http://cxf.apache.org/configuration/security" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd |
This file contains 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
HttpsURLConnection.setDefaultSSLSocketFactory(MockHttpsServer.getClientSslContext().getSocketFactory()); | |
//SSLContext.setDefault(sc); | |
server = new MockSalesforceApiServer(8090); | |
System.setProperty("javax.net.debug", "ssl"); | |
@BeforeClass | |
public static void beforeClass() { |
This file contains 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
In IdempotentRedeliveryPolicy | |
private String getIdForEvent(MuleEvent event) throws Exception | |
{ | |
if (useSecureHash) | |
{ | |
Object payload = event.getMessage().getPayload(); | |
byte[] bytes = (byte[]) objectToByteArray.transform(payload); | |
if (payload instanceof InputStream) | |
{ |
This file contains 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
<flow name="RouteByExceptionType"> | |
<jms:inbound-endpoint queue="in"> | |
<jms:transaction action="ALWAYS_BEGIN" /> | |
</jms:inbound-endpoint> | |
<test:component/> | |
<jms:outbound-endpoint queue="out"> | |
<jms:transaction action="ALWAYS_JOIN" /> | |
</jms:outbound-endpoint> | |
<choice-exception-strategy> | |
<catch-exception-strategy when="exception.causedBy(com.company.BusinessException)"> |
This file contains 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
#Functions are first | |
#Go to the end for the 'main' of the script | |
$ErrorActionPreference = "Stop" | |
Set-PSDebug -strict | |
Set-StrictMode –Version latest | |
$source = "Mule Monitoring" | |
#New-EventLog -LogName Application -Source $source | |
#EntryType - Valid values are Error, Warning, Information, SuccessAudit, and FailureAudit. The default value is Information. |
This file contains 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
package com.example; | |
import org.mule.api.MuleEventContext; | |
import org.mule.api.lifecycle.Callable; | |
/** | |
* From the docs | |
* "To enable the component to work directly with the message, | |
* you must implement the Callable interface" | |
* |
This file contains 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
grep -B5 "pattern" filename | awk -F '\n' 'ln ~ /^$/ { ln = "matched"; print $1 } $1 ~ /^--$/ { ln = "" }' |
This file contains 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
<expression-component> | |
payload.Address1 = app.registry.encryption.decrypt(payload.Address1) | |
</expression-component> | |
<scripting:component> | |
<scripting:script engine="groovy" file="scripts/create-player-request-transformer.groovy"/> | |
</scripting:component> | |
<expression-component> | |
Runtime.getRuntime().exec("C:\\myfile.exe arg1 " + message.correlationId); |
This file contains 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
#!/bin/sh | |
set -e | |
if ! getent group ganglia >/dev/null; then | |
echo Adding group: ganglia. | |
groupadd --system ganglia | |
fi | |
if ! getent passwd ganglia >/dev/null; then | |
echo Adding system user: ganglia. |