-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
119 additions
and
108 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
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,36 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<mule xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:db="http://www.mulesoft.org/schema/mule/db" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" | ||
<mule | ||
xmlns="http://www.mulesoft.org/schema/mule/core" | ||
xmlns:json="http://www.mulesoft.org/schema/mule/json" | ||
xmlns:db="http://www.mulesoft.org/schema/mule/db" | ||
xmlns:http="http://www.mulesoft.org/schema/mule/http" | ||
xmlns:jms="http://www.mulesoft.org/schema/mule/jms" | ||
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" | ||
xmlns:spring="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd | ||
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd | ||
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd | ||
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd | ||
http://www.mulesoft.org/schema/mule/db http://www.mulesoft.org/schema/mule/db/current/mule-db.xsd | ||
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd | ||
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd"> | ||
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/> | ||
<spring:beans> | ||
<spring:bean id="Bean" name="Bean" class="com.mulesoft.training.Database"/> | ||
</spring:beans> | ||
<db:derby-config name="Derby_Configuration" url="jdbc:derby:memory:muleEmbeddedDB;create=true" doc:name="Derby Configuration"/> | ||
<jms:activemq-connector name="Active_MQ" brokerURL="vm://localhost" validateConnections="true" doc:name="Active MQ"/> | ||
|
||
<flow name="mavenFlow"> | ||
<http:listener config-ref="HTTP_Listener_Configuration" path="/hello" doc:name="HTTP"/> | ||
<set-payload value="#['Hello Maven']" doc:name="Set Payload"/> | ||
</flow> | ||
<flow name="retrieveFlightsFlow"> | ||
<http:listener config-ref="HTTP_Listener_Configuration" path="/flights" doc:name="HTTP"/> | ||
<db:select config-ref="Derby_Configuration" doc:name="Database"> | ||
<db:parameterized-query><![CDATA[select * from flights]]></db:parameterized-query> | ||
</db:select> | ||
<json:object-to-json-transformer doc:name="Object to JSON"/> | ||
<jms:outbound-endpoint queue="flights" connector-ref="Active_MQ" doc:name="JMS"/> | ||
</flow> | ||
<flow name="maven-projectFlow"> | ||
<jms:inbound-endpoint queue="flights" connector-ref="Active_MQ" doc:name="JMS"/> | ||
<logger message="#[message.payload]" level="INFO" doc:name="Logger"/> | ||
</flow> | ||
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd | ||
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd | ||
http://www.mulesoft.org/schema/mule/db http://www.mulesoft.org/schema/mule/db/current/mule-db.xsd | ||
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd | ||
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd"> | ||
|
||
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration" /> | ||
|
||
<spring:beans> | ||
<spring:bean id="Bean" name="Bean" class="com.mulesoft.training.Database" /> | ||
</spring:beans> | ||
|
||
<db:derby-config name="Derby_Configuration" url="jdbc:derby:memory:muleEmbeddedDB;create=true" doc:name="Derby Configuration" /> | ||
|
||
<jms:activemq-connector name="Active_MQ" brokerURL="vm://localhost" validateConnections="true" doc:name="Active MQ" /> | ||
|
||
<flow name="mavenFlow"> | ||
<http:listener config-ref="HTTP_Listener_Configuration" path="/hello" doc:name="HTTP" /> | ||
<set-payload value="#['Hello Maven']" doc:name="Set Payload" /> | ||
</flow> | ||
|
||
<flow name="retrieveFlightsFlow"> | ||
<http:listener config-ref="HTTP_Listener_Configuration" path="/flights" doc:name="HTTP" /> | ||
<db:select config-ref="Derby_Configuration" doc:name="Database"> | ||
<db:parameterized-query><![CDATA[select * from flights]]></db:parameterized-query> | ||
</db:select> | ||
<json:object-to-json-transformer doc:name="Object to JSON" /> | ||
<jms:outbound-endpoint queue="flights" connector-ref="Active_MQ" doc:name="JMS" /> | ||
</flow> | ||
|
||
<flow name="maven-projectFlow"> | ||
<jms:inbound-endpoint queue="flights" connector-ref="Active_MQ" doc:name="JMS" /> | ||
<logger message="#[message.payload]" level="INFO" doc:name="Logger" /> | ||
</flow> | ||
</mule> |