You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by Charith Wickramarachchi <ch...@gmail.com> on 2009/03/25 08:11:15 UTC

Re: [jira] Created: (SYNAPSE-522) Enhance the Send mediator AND/OR Endpoints, to accept properties

Hi Asankha,

I got a problem in My mind when trying to implement this feature.My be i
miss understood the what you mean.

1 . Are we going to set these properties to the Synapse Message Context ?If
yes that means are we going to add a dependency of Property Mediators  to
Send mediator and Endpoint ?

2. If we are going to put Property Mediators in Send and Endpoints we have
to call mediate(messagectx) in side that ? or how we are going set those
properties to the MessageContext?

Is there a better way or any clarification  please suggest your feed back.

thank you,
Charith

On Thu, Mar 19, 2009 at 2:43 PM, Asankha C. Perera (JIRA)
<ji...@apache.org>wrote:

> Enhance the Send mediator AND/OR Endpoints, to accept properties
> ----------------------------------------------------------------
>
>                 Key: SYNAPSE-522
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-522
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.2
>            Reporter: Asankha C. Perera
>            Priority: Minor
>             Fix For: 1.3
>
>
> Reference to http://markmail.org/message/cvbfh2wpapn2yt6u
>
> support the specifications of one or more properties within the send
> mediator e.g. FORCE_HTTP_1.0, POST_TO_PATH etc would belong with the send
> mediator, while format, passwords etc may belong as endpoint properties
>
> <send>
> <property name="BUILD_ENVELOPE" value="true"/>
> <... other such properties.../>
> <endpoint ...../>
> </send>
>
> OR/AND
>
> <send>
> <endpoint ....>
> <property name="BUILD_ENVELOPE" value="true"/>
> <... other such properties.../>
> </endpoint>
> </send>
>
> --
> 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
>
>


-- 
Charith Dhanushka Wickramarachchi
http://charithwiki.blogspot.com/

Re: [jira] Created: (SYNAPSE-522) Enhance the Send mediator AND/OR Endpoints, to accept properties

Posted by "Asankha C. Perera" <as...@apache.org>.
Hi Charith
> 1 . Are we going to set these properties to the Synapse Message 
> Context ?If yes that means are we going to add a dependency of 
> Property Mediators  to Send mediator and Endpoint ?
Nope, what should happen here is the same "effect" as the property 
mediator. You will not have a code dependency to that.. since its just a 
couple of lines anyway.

i.e. the effect of

<send>
<property name="x" value|expression="y" scope="z"/>
...
</send>

would be the same effect as

<property name="x" value|expression="y" scope="z"/>
<send>
...
</send>
> 2. If we are going to put Property Mediators in Send and Endpoints we 
> have to call mediate(messagectx) in side that ? or how we are going 
> set those properties to the MessageContext?
>
> Is there a better way or any clarification  please suggest your feed back.
I think the 1st provides the answer here.. let me know if you have more 
questions

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com





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