Thursday, September 26, 2013

Upcoming ESB features (Call Meditor and Connectors)

ESB 4.8.0 about to be released soon, in my previous blog I discussed how you can configure, iterate and aggregate ,there have been numerous changers accommodated in 4.8.0 to simplify the configuration, some of the enhancements we have done listed below.

  • Call Mediator (Non Blocking callout mediator) probably but almost retiring CalloutMediator (which is blocking)
  • Loopback Mediator
  • Response  Mediator  
                additionally more information to be followed related to the CLOUD CONNECTOR usecases within next few weeks ......


<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="CallIterator"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence>
         <iterate xmlns:m1="http://services.samples"
                  xmlns:m2="http://services.samples/xsd"
                  id="callItr"
                  expression="//m1:getQuotes/m1:getQuote">
            <target>
               <sequence>
                  <call>
                     <endpoint>
                        <address uri="http://localhost:9001/services/SimpleStockQuoteService"/>
                     </endpoint>
                  </call>
               </sequence>
            </target>
         </iterate>
         <log level="full">
            <property name="MESSAGE" value="##1"/>
         </log>
         <property name="ECNCLOSING_ELEMENT" scope="default">
            <wrapper xmlns=""/>
         </property>
         <aggregate id="callItr">
            <completeCondition>
               <messageCount min="-1" max="-1"/>
            </completeCondition>
            <onComplete xmlns:m1="http://services.samples"
                        expression="//m1:getQuoteResponse"
                        enclosingElementProperty="ECNCLOSING_ELEMENT">
               <log level="full">
                  <property name="MESSAGE" value="##2"/>
               </log>
            </onComplete>
         </aggregate>
         <loopback/>
      </inSequence>
      <outSequence>
         <respond/>
      </outSequence>
   </target>
   <description/>
</proxy>


response..

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <wrapper>
         <ns:getQuoteResponse xmlns:ns="http://services.samples">
            <ns:return xsi:type="ax21:GetQuoteResponse" xmlns:ax21="http://services.samples/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
               <ax21:change>-2.282072032481502</ax21:change>
               <ax21:earnings>-8.184245817709384</ax21:earnings>
               <ax21:high>161.1255146837517</ax21:high>
               <ax21:last>153.9460060122943</ax21:last>
               <ax21:lastTradeTimestamp>Thu Sep 26 23:05:24 IST 2013</ax21:lastTradeTimestamp>
               <ax21:low>-153.68705428915268</ax21:low>
               <ax21:marketCap>3698159.0880708937</ax21:marketCap>
               <ax21:name>DLL Company</ax21:name>
               <ax21:open>-151.72501736767938</ax21:open>
               <ax21:peRatio>25.8716132214498</ax21:peRatio>
               <ax21:percentageChange>1.562593376583845</ax21:percentageChange>
               <ax21:prevClose>-146.04388234836802</ax21:prevClose>
               <ax21:symbol>DLL</ax21:symbol>
               <ax21:volume>16230</ax21:volume>
            </ns:return>
         </ns:getQuoteResponse>
         <ns:getQuoteResponse xmlns:ns="http://services.samples">
            <ns:return xsi:type="ax21:GetQuoteResponse" xmlns:ax21="http://services.samples/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
               <ax21:change>-2.50201581759645</ax21:change>
               <ax21:earnings>13.910655333381875</ax21:earnings>
               <ax21:high>-173.9913159476355</ax21:high>
               <ax21:last>178.2282964042608</ax21:last>
               <ax21:lastTradeTimestamp>Thu Sep 26 23:05:24 IST 2013</ax21:lastTradeTimestamp>
               <ax21:low>184.07373157820325</ax21:low>
               <ax21:marketCap>-8690349.18328286</ax21:marketCap>
               <ax21:name>SAMSUG Company</ax21:name>
               <ax21:open>187.00563796447824</ax21:open>
               <ax21:peRatio>24.27282100627226</ax21:peRatio>
               <ax21:percentageChange>1.5129014962405416</ax21:percentageChange>
               <ax21:prevClose>-165.37863329594103</ax21:prevClose>
               <ax21:symbol>SAMSUG</ax21:symbol>
               <ax21:volume>17238</ax21:volume>
            </ns:return>
         </ns:getQuoteResponse>
         <ns:getQuoteResponse xmlns:ns="http://services.samples">
            <ns:return xsi:type="ax21:GetQuoteResponse" xmlns:ax21="http://services.samples/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
               <ax21:change>3.776274828469344</ax21:change>
               <ax21:earnings>12.080383538265115</ax21:earnings>
               <ax21:high>-169.48473541292884</ax21:high>
               <ax21:last>173.1940035266614</ax21:last>
               <ax21:lastTradeTimestamp>Thu Sep 26 23:05:24 IST 2013</ax21:lastTradeTimestamp>
               <ax21:low>179.34173748130962</ax21:low>
               <ax21:marketCap>3.542581699105626E7</ax21:marketCap>
               <ax21:name>IBM Company</ax21:name>
               <ax21:open>-170.07540506338606</ax21:open>
               <ax21:peRatio>-19.16117019602173</ax21:peRatio>
               <ax21:percentageChange>2.001801348105515</ax21:percentageChange>
               <ax21:prevClose>188.64383481623557</ax21:prevClose>
               <ax21:symbol>IBM</ax21:symbol>
               <ax21:volume>8286</ax21:volume>
            </ns:return>
         </ns:getQuoteResponse>
      </wrapper>
   </soapenv:Body>
</soapenv:Envelope>

No comments:

Post a Comment