You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/06/08 02:38:20 UTC
[jira] [Commented] (SYNAPSE-1042) MessageID returned as Null when a
proxy is invoked via a scheduled task
[ https://issues.apache.org/jira/browse/SYNAPSE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15319880#comment-15319880 ]
Hudson commented on SYNAPSE-1042:
---------------------------------
SUCCESS: Integrated in Synapse - Trunk #5270 (See [https://builds.apache.org/job/Synapse%20-%20Trunk/5270/])
applying patch by prabath to fix SYNAPSE-1042 (isudana: rev 1747332)
* java/modules/core/src/main/java/org/apache/synapse/startup/tasks/MessageInjector.java
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org