Paul,

I am in the process of implementing the getters from the command back to the
message in the POJOCommand mediator and came across the following issues.

1) Do we have to set the properties back to the message body (that is: like
replacing the message payload or part of the payload depending on the
provided XPATH from the result of a command object after execution)
2) If so, what if there is two matching elements? (Are we going to use the
first found or all)
3) In that case are we replacing the element or attaching the result
property as a child to the matching element in the message?

I have already did the context properties, that is just setting a
msgCtx.setProperty() with the specified name and the value from the command
object after execution and wondering whether we need to support the XPath
based property setting as well?

WDYT?

Thanks,
Ruwan

On Nov 26, 2007 3:15 PM, Ruwan Linton <[EMAIL PROTECTED]> wrote:

> Hi Paul,
>
> I got the point. I think I did a mistake on the implementation. In the
> current model there is no mechanism to set the properties back to the
> message on the back path, from the Command. I will work on this to fix the
> behavior of the POJOCommand mediator as excepted.
>
> I have filed a JIRA for this [1], and will start on work soon.
>
> [1] - https://issues.apache.org/jira/browse/SYNAPSE-182
>
> Thanks,
> Ruwan
>
>
> On Nov 26, 2007 2:16 PM, Paul Fremantle <[EMAIL PROTECTED]> wrote:
>
> > Looking at the code for the POJOCommandMediatorFactory, I see it doesn't
> > "ask" whether properties need to be get or set or both.
> > So I'm guessing that the POJOCommandMediator isn't coded exactly as we
> > originally discussed. I will take a look at the code but I've got a stack of
> > other stuff to get through, so I thought I'd start a discussion here first.
> >
> > Paul
> >
> > --
> > Paul Fremantle
> > Co-Founder and VP of Technical Sales, WSO2
> > OASIS WS-RX TC Co-chair
> >
> > blog: http://pzf.fremantle.org
> >  [EMAIL PROTECTED]
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
>
>
>
>
> --
> Ruwan Linton
> http://www.wso2.org - "Oxygenating the Web Services Platform"




-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Reply via email to