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
static final Map<String, String> NAMESPACES = [ | |
env: 'http://schemas.xmlsoap.org/soap/envelope/', | |
xsd: 'http://www.w3.org/2001/XMLSchema', | |
xsi: 'http://www.w3.org/2001/XMLSchema-instance' | |
] | |
@Before | |
void initXml() { | |
evaluator = XPathFactory.newInstance().newXPath() | |
evaluator.setNamespaceContext([ |
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
description "Run Mule ESB" | |
author "Ryan Hoegg" | |
setuid mule | |
setgid nogroup | |
# we need real ethernet before starting: | |
start on (local-filesystems and net-device-up IFACE!=lo) | |
stop on runlevel [016] |
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
CREATE TABLE door_access ( | |
badge_id INT NOT NULL, | |
door_id INT NOT NULL, | |
when TIMESTAMP | |
) | |
- monitor table for inserts, there will be no updates | |
- Send Door ID 53 to AMQP exchange 'SuperSecureBank.alerts.VaultAccess' | |
- Send Doors 17, 11, 2, 3, 5 to CSV file on box.com folder TBD | |
- log a warning if any other door badge in occurs |
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.confluex.test.salesforce.sforce | |
import groovy.util.logging.Slf4j | |
import org.w3c.dom.Document | |
import org.w3c.dom.Element | |
import javax.xml.parsers.DocumentBuilderFactory | |
import javax.xml.stream.XMLOutputFactory | |
import javax.xml.transform.dom.DOMResult |
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
# Mule and some dependencies | |
log4j.logger.org.mule=WARN | |
log4j.logger.com.mulesoft=WARN | |
log4j.logger.org.mule.DefaultMuleContext=INFO | |
log4j.logger.org.springframework=WARN | |
log4j.logger.org.apache=WARN | |
# Calm down, DataMapper | |
log4j.logger.org.jetel=WARN | |
log4j.logger.Tracking=WARN |
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
<logger doc:name="INFO" | |
category="com.confluex.mule.MyApplicatioName.MyFlowName" | |
level="INFO" | |
message="Added #[payload.size()] customer records to ERP system from CRM" /> |
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
$MULE_HOME/bin/mule start -M-DMULE_ENV=staging |
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
wrapper.java.additional.4=-DMULE_ENV=staging |
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
<context:property-placeholder | |
location="classpath:myapp-config.properties,classpath:myapp-config-${MULE_ENV}.properties,file:/opt/mule/conf/${MULE_ENV}/myapp-config.properties" | |
ignore-resource-not-found="true" | |
ignore-unresolvable="true" /> |
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.foo; | |
import org.apache.commons.io.IOUtils; | |
import org.springframework.beans.factory.FactoryBean; | |
import org.springframework.core.io.Resource; | |
public class StringFromResource implements FactoryBean<String> { | |
private Resource resource; | |
public Resource getResource() { |
NewerOlder