Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
aperepel
committed
Mar 16, 2009
1 parent
85438af
commit 966f2c5
Showing
183 changed files
with
4,463 additions
and
4,463 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.muleinaction</groupId> | ||
<artifactId>appendices</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.mule.transports</groupId> | ||
<artifactId>mule-transport-vm</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mule.modules</groupId> | ||
<artifactId>mule-module-client</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mule.modules</groupId> | ||
<artifactId>mule-module-scripting</artifactId> | ||
</dependency> | ||
</dependencies> | ||
<artifactId>expression-evaluators</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Mule in Action - Appendices - Expression Evaluators</name> | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.muleinaction</groupId> | ||
<artifactId>appendices</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.mule.transports</groupId> | ||
<artifactId>mule-transport-vm</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mule.modules</groupId> | ||
<artifactId>mule-module-client</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mule.modules</groupId> | ||
<artifactId>mule-module-scripting</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<artifactId>expression-evaluators</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Mule in Action - Appendices - Expression Evaluators</name> | ||
</project> |
136 changes: 68 additions & 68 deletions
136
appendices/expression-evaluators/src/test/resources/conf/expressions-config.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,87 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.2" xmlns:test="http://www.mulesource.org/schema/mule/test/2.2" | ||
xmlns:http="http://www.mulesource.org/schema/mule/http/2.2" | ||
xsi:schemaLocation=" | ||
http://www.mulesource.org/schema/mule/http/2.2 http://www.mulesource.org/schema/mule/http/2.2/mule-http.xsd | ||
xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.2" xmlns:test="http://www.mulesource.org/schema/mule/test/2.2" | ||
xmlns:http="http://www.mulesource.org/schema/mule/http/2.2" | ||
xsi:schemaLocation=" | ||
http://www.mulesource.org/schema/mule/http/2.2 http://www.mulesource.org/schema/mule/http/2.2/mule-http.xsd | ||
http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd | ||
http://www.mulesource.org/schema/mule/vm/2.2 http://www.mulesource.org/schema/mule/vm/2.2/mule-vm.xsd | ||
http://www.mulesource.org/schema/mule/test/2.2 http://www.mulesource.org/schema/mule/test/2.2/mule-test.xsd"> | ||
|
||
<vm:endpoint name="TargetChannel" path="Target" /> | ||
<vm:endpoint name="LoggerChannel" path="Logger" /> | ||
<vm:endpoint name="TargetChannel" path="Target" /> | ||
<vm:endpoint name="LoggerChannel" path="Logger" /> | ||
|
||
<model name="ExpressionModel"> | ||
<model name="ExpressionModel"> | ||
|
||
<!-- <start id="ExprEval-Transformer" /> --> | ||
<service name="AckingAsyncDispatcher"> | ||
<inbound> | ||
<vm:inbound-endpoint path="AckingAsyncDispatcher.IN" synchronous="true"> | ||
<response-transformers> | ||
<expression-transformer> | ||
<return-argument evaluator="message" expression="correlationId" /> | ||
</expression-transformer> | ||
</response-transformers> | ||
</vm:inbound-endpoint> | ||
</inbound> | ||
<!-- <start id="ExprEval-Transformer" /> --> | ||
<service name="AckingAsyncDispatcher"> | ||
<inbound> | ||
<vm:inbound-endpoint path="AckingAsyncDispatcher.IN" synchronous="true"> | ||
<response-transformers> | ||
<expression-transformer> | ||
<return-argument evaluator="message" expression="correlationId" /> | ||
</expression-transformer> | ||
</response-transformers> | ||
</vm:inbound-endpoint> | ||
</inbound> | ||
|
||
<outbound> | ||
<pass-through-router> | ||
<outbound-endpoint ref="TargetChannel" synchronous="false" /> | ||
</pass-through-router> | ||
</outbound> | ||
</service> | ||
<!-- <end id="ExprEval-Transformer" /> --> | ||
<outbound> | ||
<pass-through-router> | ||
<outbound-endpoint ref="TargetChannel" synchronous="false" /> | ||
</pass-through-router> | ||
</outbound> | ||
</service> | ||
<!-- <end id="ExprEval-Transformer" /> --> | ||
|
||
<!-- <start id="ExprEval-Filter" /> --> | ||
<service name="PayloadSizeFiltering"> | ||
<inbound> | ||
<vm:inbound-endpoint path="PayloadSizeFiltering.IN" /> | ||
</inbound> | ||
<!-- <start id="ExprEval-Filter" /> --> | ||
<service name="PayloadSizeFiltering"> | ||
<inbound> | ||
<vm:inbound-endpoint path="PayloadSizeFiltering.IN" /> | ||
</inbound> | ||
|
||
<outbound> | ||
<filtering-router> | ||
<outbound-endpoint ref="TargetChannel" /> | ||
<expression-filter evaluator="groovy" expression="message.payloadAsBytes.length>1024" /> | ||
</filtering-router> | ||
<forwarding-catch-all-strategy> | ||
<outbound-endpoint ref="LoggerChannel" /> | ||
</forwarding-catch-all-strategy> | ||
</outbound> | ||
</service> | ||
<!-- <end id="ExprEval-Filter" /> --> | ||
<outbound> | ||
<filtering-router> | ||
<outbound-endpoint ref="TargetChannel" /> | ||
<expression-filter evaluator="groovy" expression="message.payloadAsBytes.length>1024" /> | ||
</filtering-router> | ||
<forwarding-catch-all-strategy> | ||
<outbound-endpoint ref="LoggerChannel" /> | ||
</forwarding-catch-all-strategy> | ||
</outbound> | ||
</service> | ||
<!-- <end id="ExprEval-Filter" /> --> | ||
|
||
<service name="ExpressionParser"> | ||
<inbound> | ||
<vm:inbound-endpoint path="ExpressionParser.IN" synchronous="true" /> | ||
</inbound> | ||
<!-- <start id="ExprParser-Config" /> --> | ||
<component> | ||
<singleton-object class="com.muleinaction.component.ExpressionParser"> | ||
<property key="expression" value="#[message:correlationId]@#[function:datestamp:yyyy-dd-MM]" /> | ||
</singleton-object> | ||
</component> | ||
<!-- <end id="ExprParser-Config" /> --> | ||
</service> | ||
<service name="ExpressionParser"> | ||
<inbound> | ||
<vm:inbound-endpoint path="ExpressionParser.IN" synchronous="true" /> | ||
</inbound> | ||
<!-- <start id="ExprParser-Config" /> --> | ||
<component> | ||
<singleton-object class="com.muleinaction.component.ExpressionParser"> | ||
<property key="expression" value="#[message:correlationId]@#[function:datestamp:yyyy-dd-MM]" /> | ||
</singleton-object> | ||
</component> | ||
<!-- <end id="ExprParser-Config" /> --> | ||
</service> | ||
|
||
<service name="TargetService"> | ||
<inbound> | ||
<inbound-endpoint ref="TargetChannel" /> | ||
</inbound> | ||
<service name="TargetService"> | ||
<inbound> | ||
<inbound-endpoint ref="TargetChannel" /> | ||
</inbound> | ||
|
||
<component> | ||
<singleton-object class="org.mule.tck.functional.FunctionalTestComponent" /> | ||
</component> | ||
</service> | ||
<component> | ||
<singleton-object class="org.mule.tck.functional.FunctionalTestComponent" /> | ||
</component> | ||
</service> | ||
|
||
<service name="LoggerService"> | ||
<inbound> | ||
<inbound-endpoint ref="LoggerChannel" /> | ||
</inbound> | ||
<log-component /> | ||
</service> | ||
<service name="LoggerService"> | ||
<inbound> | ||
<inbound-endpoint ref="LoggerChannel" /> | ||
</inbound> | ||
<log-component /> | ||
</service> | ||
|
||
</model> | ||
</model> | ||
|
||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.muleinaction</groupId> | ||
<artifactId>mia-parent</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>appendices</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Mule in Action - Appendices</name> | ||
<modules> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.muleinaction</groupId> | ||
<artifactId>mia-parent</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>appendices</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Mule in Action - Appendices</name> | ||
|
||
<modules> | ||
<module>expression-evaluators</module> | ||
</modules> | ||
</project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.muleinaction</groupId> | ||
<artifactId>mia-parent</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>chapter01</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Mule in Action - Chapter 1</name> | ||
<modules> | ||
<module>welcome</module> | ||
</modules> | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.muleinaction</groupId> | ||
<artifactId>mia-parent</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>chapter01</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Mule in Action - Chapter 1</name> | ||
|
||
<modules> | ||
<module>welcome</module> | ||
</modules> | ||
</project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.2" | ||
xmlns:quartz="http://www.mulesource.org/schema/mule/quartz/2.2" | ||
xmlns:spring="http://www.springframework.org/schema/beans" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd | ||
http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd | ||
http://www.mulesource.org/schema/mule/stdio/2.2 http://www.mulesource.org/schema/mule/stdio/2.2/mule-stdio.xsd | ||
http://www.mulesource.org/schema/mule/quartz/2.2 http://www.mulesource.org/schema/mule/quartz/2.2/mule-quartz.xsd"> | ||
<spring:bean id="welcomeMessage" class="java.lang.String"> | ||
<spring:constructor-arg> | ||
<spring:value><![CDATA[ | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.2" | ||
xmlns:quartz="http://www.mulesource.org/schema/mule/quartz/2.2" | ||
xmlns:spring="http://www.springframework.org/schema/beans" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd | ||
http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd | ||
http://www.mulesource.org/schema/mule/stdio/2.2 http://www.mulesource.org/schema/mule/stdio/2.2/mule-stdio.xsd | ||
http://www.mulesource.org/schema/mule/quartz/2.2 http://www.mulesource.org/schema/mule/quartz/2.2/mule-quartz.xsd"> | ||
|
||
<spring:bean id="welcomeMessage" class="java.lang.String"> | ||
<spring:constructor-arg> | ||
<spring:value><![CDATA[ | ||
_ _ _ _ ___ ___ _ _ | ||
| | | | | | | | | \/ | | | | | | ||
| | | | ___| | ___ ___ _ __ ___ ___ | |_ ___ | . . |_ _| | ___| | | ||
| |/\| |/ _ \ |/ __/ _ \| '_ ` _ \ / _ \ | __/ _ \ | |\/| | | | | |/ _ \ | | ||
\ /\ / __/ | (_| (_) | | | | | | __/ | || (_) | | | | | |_| | | __/_| | ||
\/ \/ \___|_|\___\___/|_| |_| |_|\___| \__\___/ \_| |_/\__,_|_|\___(_) | ||
]]> | ||
</spring:value> | ||
</spring:constructor-arg> | ||
</spring:bean> | ||
]]> | ||
</spring:value> | ||
</spring:constructor-arg> | ||
</spring:bean> | ||
|
||
<model name="welcomeModel"> | ||
<service name="welcomeService"> | ||
<inbound> | ||
<quartz:inbound-endpoint jobName="welcome" repeatInterval="0" repeatCount="0"> | ||
<property key="payload" value-ref="welcomeMessage" /> | ||
<quartz:event-generator-job /> | ||
</quartz:inbound-endpoint> | ||
</inbound> | ||
<outbound> | ||
<pass-through-router> | ||
<stdio:outbound-endpoint system="OUT"/> | ||
</pass-through-router> | ||
</outbound> | ||
</service> | ||
</model> | ||
<model name="welcomeModel"> | ||
<service name="welcomeService"> | ||
<inbound> | ||
<quartz:inbound-endpoint jobName="welcome" repeatInterval="0" repeatCount="0"> | ||
<property key="payload" value-ref="welcomeMessage" /> | ||
<quartz:event-generator-job /> | ||
</quartz:inbound-endpoint> | ||
</inbound> | ||
<outbound> | ||
<pass-through-router> | ||
<stdio:outbound-endpoint system="OUT"/> | ||
</pass-through-router> | ||
</outbound> | ||
</service> | ||
</model> | ||
</mule> |
Oops, something went wrong.