Created
September 11, 2020 14:56
-
-
Save johndemic/0cb09a69acec49b01d34bdc2b91a7b45 to your computer and use it in GitHub Desktop.
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"?> | |
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:http="http://www.mulesoft.org/schema/mule/http" | |
xmlns:spring="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="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.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-current.xsd"> | |
<spring:beans> | |
<spring:bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor"/> | |
<spring:bean name="loggingNotificationStrategy" class="io.o3p.mule.notification.LoggingNotificationStrategy"/> | |
<spring:bean name="flowNListener" | |
class="io.o3p.mule.notification.FlowNotificationListener"> | |
<spring:property name="notificationStrategy" ref="loggingNotificationStrategy"/> | |
</spring:bean> | |
<spring:bean name="reqResNListener" | |
class="io.o3p.mule.notification.RequestResponseNotificationListener"/> | |
<spring:bean name="httpRequesterNotificationListener" | |
class="io.o3p.mule.notification.HttpRequesterNotificationListener"> | |
<spring:property name="notificationStrategy" ref="loggingNotificationStrategy"/> | |
</spring:bean> | |
<spring:bean name="subFlowNotificationListener" | |
class="io.o3p.mule.notification.SubFlowNotificationListener"> | |
<spring:property name="notificationStrategy" ref="loggingNotificationStrategy"/> | |
</spring:bean> | |
<spring:bean class="io.o3p.mule.notification.NotificationListenerLoader"> | |
<spring:property name="flowNotificationListener" ref="flowNListener"/> | |
<spring:property name="requestResponseNotificationListener" ref="reqResNListener"/> | |
</spring:bean> | |
</spring:beans> | |
<notifications> | |
<notification event="CONNECTOR-MESSAGE"/> | |
<notification event="MESSAGE-PROCESSOR"/> | |
<notification-listener ref="flowNListener"/> | |
<notification-listener ref="reqResNListener"/> | |
<notification-listener ref="httpRequesterNotificationListener"/> | |
<notification-listener ref="subFlowNotificationListener"/> | |
</notifications> | |
<http:listener-config name="http-listener-test" | |
host="localhost" | |
port="8823"/> | |
<http:request-config name="http-request-test" | |
host="localhost" | |
port="8823"/> | |
<flow name="proxy"> | |
<http:listener config-ref="http-listener-test" path="/proxy"/> | |
<flow-ref name="http-subflow"/> | |
<http:request config-ref="http-request-test" method="get" path="/test"/> | |
</flow> | |
<sub-flow name="http-subflow"> | |
<logger level="INFO" message="Inside subflow"/> | |
<http:request config-ref="http-request-test" method="get" path="/test"/> | |
</sub-flow> | |
<flow name="endpoint"> | |
<http:listener config-ref="http-listener-test" path="/test"/> | |
<set-payload value="Test!"/> | |
</flow> | |
<flow name="request"> | |
<http:request config-ref="http-request-test" method="get" path="/test"/> | |
</flow> | |
</mule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment