You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2010/02/22 18:46:28 UTC

[jira] Updated: (SYNAPSE-611) Synapse Axis2FlexibleMep client does not set the policy correctly

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

Amila Chinthaka Suriarachchi updated SYNAPSE-611:
-------------------------------------------------

    Attachment: patch.txt

this patch fix the issue. It populate a SandesahProperty bean and set as a parameter.

eg. synapse.xml
<definitions xmlns="http://ws.apache.org/ns/synapse">
<localEntry key="my_policy">
    <sandesha2:RMAssertion xmlns:sandesha2="http://ws.apache.org/sandesha2/policy">
        <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
                    xmlns:wsrm="http://ws.apache.org/sandesha2/policy" wsu:Id="RMPolicy">
            <wsrm:AcknowledgementInterval>3000</wsrm:AcknowledgementInterval>
            <wsrm:RetransmissionInterval>20000</wsrm:RetransmissionInterval>
            <wsrm:MaximumRetransmissionCount>5</wsrm:MaximumRetransmissionCount>

            <wsrm:ExponentialBackoff>false</wsrm:ExponentialBackoff>
            <wsrm:InactivityTimeout>60</wsrm:InactivityTimeout>
            <wsrm:InactivityTimeoutMeasure>seconds</wsrm:InactivityTimeoutMeasure>
            <wsrm:InvokeInOrder>true</wsrm:InvokeInOrder>
            <wsrm:MessageTypesToDrop>none</wsrm:MessageTypesToDrop>
        </wsp:Policy>
    </sandesha2:RMAssertion>
</localEntry>

   <sequence name="main" onError="onError">
    <in>
        <RMSequence single="true" version="1.0"/>
        <send>
                <endpoint name="reliable">
                        <address uri="http://localhost:9001/services/ReliableStockQuoteService">
                                <enableRM policy="my_policy"/>
                                <enableAddressing/>
                            </address>
            </endpoint>
        </send>
    </in>


> Synapse Axis2FlexibleMep client does not set the policy correctly
> -----------------------------------------------------------------
>
>                 Key: SYNAPSE-611
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-611
>             Project: Synapse
>          Issue Type: Bug
>            Reporter: Amila Chinthaka Suriarachchi
>         Attachments: patch.txt
>
>
> Synapse Axis2FlexibleMepClient does not set the policy correctly. Polices have to set as a SandeshaPolicyBean as a service parameter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org