[ 
https://issues.apache.org/jira/browse/SYNAPSE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Isuru Udana Loku Narangoda resolved SYNAPSE-1042.
-------------------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0

Committed revision 1747332.
Thanks for the contribution.

> MessageID returned as Null when a proxy is invoked via a scheduled task
> -----------------------------------------------------------------------
>
>                 Key: SYNAPSE-1042
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-1042
>             Project: Synapse
>          Issue Type: Bug
>            Reporter: prabath ariyarathna
>            Assignee: Isuru Udana Loku Narangoda
>             Fix For: 3.0
>
>         Attachments: SYNAPSE-1042.diff
>
>
> When a proxy is invoked by a scheduled task the message ID is returned as 
> empty in the insequence.
> <log level="custom">
>               <property name="================================   MESSAGE_ID" 
> expression="get-property('MessageID')"/>
>             </log>
> INFO LogMediator ================================   MESSAGE_ID =
> *Proxy*
> ------------
> {code}
> <proxy name="test_scheduled" transports="https http" startOnLoad="true" 
> trace="disable">
>       <description/>
>         <target>
>           <inSequence>
>             <log level="custom">
>               <property name="================================   MESSAGE_ID" 
> expression="get-property('MessageID')"/>
>             </log>
>             <send/>
>           </inSequence>
>           <outSequence>
>             <log level="custom">
>               <property name="////////////////////////////////////MESSAGE_ID" 
> expression="get-property('MessageID')"/>
>             </log>
>             <drop/>
>           </outSequence>
>         </target>
>     </proxy>
> {code}
> *Task*
> --------
> {code}
> <task name="test2" class="org.apache.synapse.startup.tasks.MessageInjector">
>       <trigger count="2" interval="5"/>
>       <property name="proxyName" value="test_scheduled"/>
>       <property name="to" 
> value="http://localhost:9000/services/SimpleStockQuoteService"/>
>       <property name="injectTo" value="proxy"/>
>       <property name="soapAction" value="urn:getQuote"/>
>       <property xmlns:task="http://www.wso2.org/products/wso2commons/tasks"; 
> name="message">
>        <m0:getQuote xmlns:m0="http://services.samples";>
>                 <m0:request>
>                     <m0:symbol>IBM</m0:symbol>
>                 </m0:request>
>             </m0:getQuote>
>         </property>
>     </task>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to