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
<base64-encoder-transformer doc:name="Base64 encode" encoding="utf8"/> |
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
muleContext.getRegistry().registerObject("<key>", <object>) | |
muleContext.getRegistry().get("<key>") |
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
%dw 1.0 | |
%output application/csv separator=";" | |
--- | |
----------------------------- | |
%dw 1.0 | |
%input in0 application/json | |
%output application/csv encoding="US-ASCII" | |
--- |
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
import org.mule.api.MuleMessage; | |
import org.mule.api.transformer.TransformerException; | |
import org.mule.transformer.AbstractMessageTransformer; | |
public class UppercaseTransformer extends AbstractMessageTransformer { | |
@Override | |
public Object transformMessage(MuleMessage message, String outputEncoding) throws TransformerException { | |
// custom code here | |
return <result>; |
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
<spring:beans> | |
<!-- ActiveMQ --> | |
<spring:bean class="org.apache.activemq.RedeliveryPolicy" id="redeliveryPolicy"> | |
<spring:property name="maximumRedeliveries" value="5"/> | |
<spring:property name="initialRedeliveryDelay" value="5000"/> | |
<spring:property name="redeliveryDelay" value="2000"/> | |
<spring:property name="useExponentialBackOff" value="false"/> | |
<spring:property name="backOffMultiplier" value="2"/> | |
</spring:bean> | |
<spring:bean class="org.apache.activemq.ActiveMQConnectionFactory" id="amqFactory" lazy-init="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
#[dw("my object:{id:payload.accountid, user:payload.user}")] |
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"?> | |
<Configuration> | |
<Appenders> | |
<RollingFile name="file" fileName="${sys:mule.home}${sys:file.separator}logs${sys:file.separator}apdev-flights-ws.log" | |
filePattern="${sys:mule.home}${sys:file.separator}logs${sys:file.separator}apdev-flights-ws-%i.log"> | |
<PatternLayout pattern="%d [%t] %-5p %c - %m%n" /> | |
<SizeBasedTriggeringPolicy size="10 MB" /> | |
<DefaultRolloverStrategy max="10"/> | |
</RollingFile> | |
</Appenders> |
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
<spring:beans> | |
<spring:import resource="class path:utilityapp.xml"/> | |
</spring:beans> |
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
// stopping | |
def myFlow = muleContext.registry.lookupFlowConstruct('<flow name>'); | |
if (myFlow.isStarted()) myFlow.stop() | |
// starting | |
def myFlow = muleContext.registry.lookupFlowConstruct('<flow name>'); | |
if (!myFlow.isStarted()) myFlow.start() |
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
<configuration> | |
<expression-language autoResolveVariables="false"/> | |
</configuration> |
OlderNewer