Commits

Anonymous committed 5c50397

update for mule 3.3.0 and latest configs with flows and patterns etc

Comments (0)

Files changed (1)

mule/mule-config.xml

       xmlns:mule-ss="http://www.mulesoft.org/schema/mule/spring-security"
       xmlns:ss="http://www.springframework.org/schema/security"
       xsi:schemaLocation="
-       http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd
-       http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.2/mule-http.xsd
-       http://www.mulesoft.org/schema/mule/jetty http://www.mulesoft.org/schema/mule/jetty/3.2/mule-jetty.xsd
-       http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/3.2/mule-xml.xsd
-       http://www.mulesoft.org/schema/mule/sxc http://www.mulesoft.org/schema/mule/sxc/3.2/mule-sxc.xsd
-       http://www.mulesoft.org/schema/mule/pattern http://www.mulesoft.org/schema/mule/pattern/3.2/mule-pattern.xsd
+       http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.3/mule.xsd
+       http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.3/mule-http.xsd
+       http://www.mulesoft.org/schema/mule/jetty http://www.mulesoft.org/schema/mule/jetty/3.3/mule-jetty.xsd
+       http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/3.3/mule-xml.xsd
+       http://www.mulesoft.org/schema/mule/sxc http://www.mulesoft.org/schema/mule/sxc/3.3/mule-sxc.xsd
+       http://www.mulesoft.org/schema/mule/pattern http://www.mulesoft.org/schema/mule/pattern/current/mule-pattern.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
-       http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/3.2/mule-cxf.xsd
-       http://www.mulesoft.org/schema/mule/spring-security http://www.mulesoft.org/schema/mule/spring-security/3.0/mule-spring-security.xsd
+       http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/3.3/mule-cxf.xsd
+       http://www.mulesoft.org/schema/mule/spring-security http://www.mulesoft.org/schema/mule/spring-security/3.3/mule-spring-security.xsd
        http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">
 
-    <!-- MULE-5011 empty config to avoid the hot deployment classloader choking on a missing config file -->
-
     <configuration>
         <default-dispatcher-threading-profile
-                maxThreadsActive="100"
-                maxThreadsIdle="10"
+                maxThreadsActive="300"
+                maxThreadsIdle="100"
                 poolExhaustedAction="WAIT"/>
     </configuration>
 
+    <jetty:connector name="JettyConnector" configFile="file:conf/jetty.xml"/>
     <http:connector name="HttpConnector" keepAlive="true" sendTcpNoDelay="true"/>
 
-    <jetty:connector name="JettyConnector" configFile="file:conf/jetty.xml"/>
-
-    <mxml:xslt-transformer name="Xsltin" xsl-file="conf/transform_env_reverse.xslt"
-                           returnClass="org.mule.module.xml.transformer.DelayedResult"/>
-    <mxml:xslt-transformer name="Xsltout" xsl-file="conf/transform_env.xslt"
-                           returnClass="org.mule.module.xml.transformer.DelayedResult"/>
+    <mxml:xslt-transformer name="Xsltin" xsl-file="conf/transform_env_reverse.xslt" returnClass="org.mule.module.xml.transformer.DelayedResult"/>
+    <mxml:xslt-transformer name="Xsltout" xsl-file="conf/transform_env.xslt" returnClass="org.mule.module.xml.transformer.DelayedResult"/>
 
     <custom-transformer name="XmlToOutputHandler" class="org.mule.module.xml.transformer.XmlToOutputHandler"/>
 
         </ss:authentication-provider>
     </spring:beans>
 
-    <endpoint
-            name="RemoteEndpoint"
-            connector-ref="HttpConnector"
-            address="http://localhost:9000/service/EchoService"
-            exchange-pattern="request-response">
+    <endpoint name="RemoteEndpoint"
+        connector-ref="HttpConnector"
+        address="http://localhost:9000/service/EchoService"
+        exchange-pattern="request-response">
+        <!--message-properties-transformer scope="outbound">
+            <add-message-property key="SOAPAction" value="#[header:INBOUND:SOAPAction]"/>
+            <add-message-property key="Content-Type" value="#[header:INBOUND:Content-Type]"/>
+        </message-properties-transformer-->
+    </endpoint>
+
+    <pattern:web-service-proxy name="DirectProxy"
+        inboundAddress="jetty:http://0.0.0.0:8090/service/DirectProxy"
+        outboundEndpoint-ref="RemoteEndpoint" 
+        wsdlFile="conf/ProxyWSDL-embedded.wsdl" />
+
+    <flow name="XSLTProxy">
+        <inbound-endpoint
+                connector-ref="JettyConnector" 
+                address="jetty:http://0.0.0.0:8090/service/XSLTProxy"
+                transformer-refs="Xsltin XmlToOutputHandler" 
+                responseTransformer-refs="Xsltout XmlToOutputHandler" 
+                exchange-pattern="request-response"/>
+        <outbound-endpoint connector-ref="HttpConnector"
+                                   address="http://localhost:9000/service/EchoService"
+                                   exchange-pattern="request-response">
             <message-properties-transformer scope="outbound">
                 <add-message-property key="SOAPAction" value="#[header:INBOUND:SOAPAction]"/>
                 <add-message-property key="Content-Type" value="#[header:INBOUND:Content-Type]"/>
             </message-properties-transformer>
-    </endpoint>
+        </outbound-endpoint>
+    </flow>   
 
     <model name="PerfModel">
 
-        <service name="DirectProxy">
-            <inbound>
-                <jetty:inbound-endpoint
-                        address="http://0.0.0.0:8090/service/DirectProxy"
-                        exchange-pattern="request-response"/>
-            </inbound>
-            <component>
-                <spring-object bean="WSProxyService"/>
-            </component>
-            <outbound>
-                <pass-through-router>
-                    <outbound-endpoint ref="RemoteEndpoint"/>
-                </pass-through-router>
-            </outbound>
-        </service>
-
         <service name="CBRProxy">
             <inbound>
-                <jetty:inbound-endpoint address="http://0.0.0.0:8090/service/CBRProxy"
-                                        exchange-pattern="request-response"/>
+                <inbound-endpoint connector-ref="JettyConnector" 
+                    address="jetty:http://0.0.0.0:8090/service/CBRProxy"
+                    exchange-pattern="request-response"/>
             </inbound>
-            <component>
-                <spring-object bean="WSProxyService"/>
-            </component>
             <outbound>
-                <filtering-router>
-                    <outbound-endpoint ref="RemoteEndpoint" transformer-refs="XmlToOutputHandler"/>
-                    <mxml:xpath-filter pattern="//order[1]/symbol" expectedValue="IBM"/>
-                </filtering-router>
+                <!--
+                <custom-forwarding-catch-all-strategy class="org.mule.routing.ForwardingCatchAllStrategy">
+                    <outbound-endpoint ref="ErrorEndpoint"/>
+                </custom-forwarding-catch-all-strategy>
+                -->
+                <sxc:filtering-router>
+                    <outbound-endpoint ref="RemoteEndpoint" transformer-refs="XmlToOutputHandler">
+                        <message-properties-transformer scope="outbound">
+                            <add-message-property key="SOAPAction" value="#[header:INBOUND:SOAPAction]"/>
+                            <add-message-property key="Content-Type" value="#[header:INBOUND:Content-Type]"/>
+                        </message-properties-transformer>                  
+                    </outbound-endpoint>
+                    <sxc:filter pattern="//order[1]/symbol[text()='IBM']"/>
+                </sxc:filtering-router>
             </outbound>
         </service>
 
             </component>
             <outbound>
                 <filtering-router>
-                    <outbound-endpoint ref="RemoteEndpoint" transformer-refs="XmlToOutputHandler"/>
+                    <outbound-endpoint ref="RemoteEndpoint" transformer-refs="XmlToOutputHandler">
+                    <message-properties-transformer scope="outbound">
+                            <add-message-property key="SOAPAction" value="#[header:INBOUND:SOAPAction]"/>
+                            <add-message-property key="Content-Type" value="#[header:INBOUND:Content-Type]"/>
+                        </message-properties-transformer>                  
+                    </outbound-endpoint>
                     <mxml:xpath-filter pattern="//ns1:routing" expectedValue="xadmin;server1;community#1.0##">
                         <mxml:namespace prefix="ns1" uri="http://someuri"/>
                     </mxml:xpath-filter>
             </component>
             <outbound>
                 <filtering-router>
-                    <outbound-endpoint ref="RemoteEndpoint" transformer-refs="XmlToOutputHandler"/>
+                    <outbound-endpoint ref="RemoteEndpoint" transformer-refs="XmlToOutputHandler">
+                    <message-properties-transformer scope="outbound">
+                            <add-message-property key="SOAPAction" value="#[header:INBOUND:SOAPAction]"/>
+                            <add-message-property key="Content-Type" value="#[header:INBOUND:Content-Type]"/>
+                        </message-properties-transformer>                  
+                    </outbound-endpoint>
                     <expression-filter evaluator="header" expression="inbound:routing=xadmin;server1;community#1.0##"/>
                 </filtering-router>
             </outbound>
         </service>
 
-        <service name="XSLTProxy">
-            <inbound>
-                <jetty:inbound-endpoint
-                        address="http://0.0.0.0:8090/service/XSLTProxy"
-                        transformer-refs="Xsltin XmlToOutputHandler"
-                        responseTransformer-refs="Xsltout XmlToOutputHandler"
-                        exchange-pattern="request-response"/>
-            </inbound>
-            <component>
-                <spring-object bean="WSProxyService"/>
-            </component>
-            <outbound>
-                <pass-through-router>
-                    <outbound-endpoint ref="RemoteEndpoint"/>
-                </pass-through-router>
-            </outbound>
-        </service>
-
         <service name="SecureProxy">
             <inbound>
                 <jetty:inbound-endpoint address="http://0.0.0.0:8090/service/SecureProxy"
                     <outbound-endpoint ref="RemoteEndpoint" exchange-pattern="request-response"
                                        transformer-refs="XmlToOutputHandler">
                         <cxf:proxy-client payload="body"/>
+                        <message-properties-transformer scope="outbound">
+                            <add-message-property key="SOAPAction" value="#[header:INBOUND:SOAPAction]"/>
+                            <add-message-property key="Content-Type" value="#[header:INBOUND:Content-Type]"/>
+                        </message-properties-transformer>                  
                     </outbound-endpoint>
                 </pass-through-router>
             </outbound>