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
notes on getting m2e to work in studio 3.4: | |
1. Needed to use settings.xml mirrors to avoid dev.ee.mulesource.com. This is coming from muleesb-3.4-M3.pom. | |
<mirrors> | |
<mirror> | |
<id>mule-ee-proxy</id> | |
<name>Hack to not use dev.ee.mulesource.com</name> | |
<url>https://repository.mulesoft.org/releases/</url> | |
<mirrorOf>mule-ee-releases,mule-ee-snapshots,libs-releases,ext-releases</mirrorOf> |
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/bash | |
# RHEL Mule Init Script | |
# | |
# chkconfig: 2345 65 64 | |
# description: Mule ESB service | |
. /etc/init.d/functions | |
# | |
if [ -f /etc/sysconfig/mule ]; then | |
. /etc/sysconfig/mule |
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() { |
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
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
$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
<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 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
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
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 |
OlderNewer