You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Joe Smith <j_...@yahoo.com> on 2007/05/02 11:26:57 UTC
jbi:setOutProperty question
Hi all,
I am trying to use jbi:setOutProperty in my xsl router. When I try to access
this property in my component using inMessage.getPropertyNames(), I don't
see the property I set in xsl router.
I dotn know what is wrong... can someone help?
--
View this message in context: http://www.nabble.com/jbi%3AsetOutProperty-question-tf3679522s12049.html#a10282694
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: jbi:setOutProperty question
Posted by Gert Vanthienen <ge...@skynet.be>.
Joe,
According to what I read on the website, this looks OK. Just a few
thoughts:
- have you tried to access any other property of the message (that
should have been copied using jbi:copyProperties)?
- have you tried to add a hard-coded property, with a very
straightforward select in there (to be sure that there is nothing wrong
with the select clause)?
- try to set the logging treshold to DEBUG to see if there is any
additional information in the logs?
Gert
Joe Smith wrote:
> Thanks for replying Gert,
>
> My XSL code is as follows:
>
> <xsl:template match="/">
> <jbi:invoke service="rdf:arubaSimplifier" endpoint="aruba.simplifier">
> <jbi:copyProperties/>
> <jbi:setOutProperty name="timeTable"
> select="//*[contains(name(),'ToolTable')]" />
> </xsl:call-template>
> </jbi:invoke>
> </xsl:template>
>
> My impression was that if I use setOutProperty a new property 'timeTable' is
> set on the message and I can access it using inOnly.getProperty("timeTable")
> in my other component, arubaSimplifier. However, it seems to be false. How
> do I solve the problem here?
>
>
>
> Gert Vanthienen wrote:
>
>> Joe,
>>
>> I haven't used the XPath/XSLT router myself, but if you can provide me
>> with the servicemix.xml that is causing the problems, I'm quite willing
>> to learn and help you look for a solution to your problem in the
>> process...
>>
>> Gert
>>
>> Joe Smith wrote:
>>
>>> How do I set message property in XSL router?
>>>
>>> Joe Smith wrote:
>>>
>>>
>>>> Hi all,
>>>>
>>>> I am trying to use jbi:setOutProperty in my xsl router. When I try to
>>>> access this property in my component using inMessage.getPropertyNames(),
>>>> I
>>>> don't see the property I set in xsl router.
>>>>
>>>> I dotn know what is wrong... can someone help?
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: jbi:setOutProperty question
Posted by Joe Smith <j_...@yahoo.com>.
Thanks for replying Gert,
My XSL code is as follows:
<xsl:template match="/">
<jbi:invoke service="rdf:arubaSimplifier" endpoint="aruba.simplifier">
<jbi:copyProperties/>
<jbi:setOutProperty name="timeTable"
select="//*[contains(name(),'ToolTable')]" />
</xsl:call-template>
</jbi:invoke>
</xsl:template>
My impression was that if I use setOutProperty a new property 'timeTable' is
set on the message and I can access it using inOnly.getProperty("timeTable")
in my other component, arubaSimplifier. However, it seems to be false. How
do I solve the problem here?
Gert Vanthienen wrote:
>
> Joe,
>
> I haven't used the XPath/XSLT router myself, but if you can provide me
> with the servicemix.xml that is causing the problems, I'm quite willing
> to learn and help you look for a solution to your problem in the
> process...
>
> Gert
>
> Joe Smith wrote:
>> How do I set message property in XSL router?
>>
>> Joe Smith wrote:
>>
>>> Hi all,
>>>
>>> I am trying to use jbi:setOutProperty in my xsl router. When I try to
>>> access this property in my component using inMessage.getPropertyNames(),
>>> I
>>> don't see the property I set in xsl router.
>>>
>>> I dotn know what is wrong... can someone help?
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/jbi%3AsetOutProperty-question-tf3679522s12049.html#a10294754
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: jbi:setOutProperty question
Posted by Gert Vanthienen <ge...@skynet.be>.
Joe,
I haven't used the XPath/XSLT router myself, but if you can provide me
with the servicemix.xml that is causing the problems, I'm quite willing
to learn and help you look for a solution to your problem in the process...
Gert
Joe Smith wrote:
> How do I set message property in XSL router?
>
> Joe Smith wrote:
>
>> Hi all,
>>
>> I am trying to use jbi:setOutProperty in my xsl router. When I try to
>> access this property in my component using inMessage.getPropertyNames(), I
>> don't see the property I set in xsl router.
>>
>> I dotn know what is wrong... can someone help?
>>
>>
>
>
Re: jbi:setOutProperty question
Posted by Joe Smith <j_...@yahoo.com>.
How do I set message property in XSL router?
Joe Smith wrote:
>
> Hi all,
>
> I am trying to use jbi:setOutProperty in my xsl router. When I try to
> access this property in my component using inMessage.getPropertyNames(), I
> don't see the property I set in xsl router.
>
> I dotn know what is wrong... can someone help?
>
--
View this message in context: http://www.nabble.com/jbi%3AsetOutProperty-question-tf3679522s12049.html#a10293338
Sent from the ServiceMix - User mailing list archive at Nabble.com.