You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by dajevu <jd...@hireright.com> on 2006/05/04 04:00:24 UTC

Persisting MessageExchange properties between components

Hi,

I'm using the MessageExchange.setProperty method to set some properties I'd
like carried over to a subsequent component. However, they never seem to
carry forward. I've looked at the source trying to figure this out, but
haven't found the answer. 

In the component I'm setting it in, I definately see them present after I
set them, but they are nowhere to be found when they arrive in the next
component.

I'm pretty sure I'm likely missing some key step. I did see in the XML
reference some mention of persistence, but I'm not sure if that's correct,
nor exactly sure where to set it.

Thanks again!

jeff
--
View this message in context: http://www.nabble.com/Persisting-MessageExchange-properties-between-components-t1553922.html#a4221630
Sent from the ServiceMix - User forum at Nabble.com.


Re: Persisting MessageExchange properties between components

Posted by dajevu <jd...@hireright.com>.
Thanks! I've also learned alot about that by looking into the EIP code, which
seems to deal a lot with MessageExchange stuff.


--
View this message in context: http://www.nabble.com/Persisting-MessageExchange-properties-between-components-t1553922.html#a4230654
Sent from the ServiceMix - User forum at Nabble.com.


Re: Persisting MessageExchange properties between components

Posted by Guillaume Nodet <gn...@gmail.com>.
A MessageExchange is only used between two components.
If the consumer set a property, the provider will receive it.
However, if the provider also creates a MessageExchange and send it,
it has to copy the properties, so your problem is dependant on the
component you use ...

Cheers,
Guillaume Nodet

On 5/4/06, dajevu <jd...@hireright.com> wrote:
>
> Hi,
>
> I'm using the MessageExchange.setProperty method to set some properties I'd
> like carried over to a subsequent component. However, they never seem to
> carry forward. I've looked at the source trying to figure this out, but
> haven't found the answer.
>
> In the component I'm setting it in, I definately see them present after I
> set them, but they are nowhere to be found when they arrive in the next
> component.
>
> I'm pretty sure I'm likely missing some key step. I did see in the XML
> reference some mention of persistence, but I'm not sure if that's correct,
> nor exactly sure where to set it.
>
> Thanks again!
>
> jeff
> --
> View this message in context: http://www.nabble.com/Persisting-MessageExchange-properties-between-components-t1553922.html#a4221630
> Sent from the ServiceMix - User forum at Nabble.com.
>
>