Yes, looks like only 1st symbol is repalaced:
<route>
<from uri="timer://kickoff?period=10000"/>
<setBody><el>foo foo</el></setBody>
<setHeader headerName="Body">
<el>${in.body}</el>
</setHeader>
<setBody>
<el>
${in.body.replace('foo','bar')}
</el>
</setBody>
<to uri="mock:Status"/>
</route>
outputs: boo boo
Vadim.
On Fri, Sep 19, 2008 at 12:11 AM, Claus Ibsen <[EMAIL PROTECTED]> wrote:
> Hi
>
> Have you tried with something simpler. Replaceing foo -> bar, just to verify
> that the ' is not causing trouble.
>
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
>
> -----Original Message-----
> From: Vadim Chekan [mailto:[EMAIL PROTECTED]
> Sent: 19. september 2008 02:20
> To: [email protected]
> Subject: El
>
> Why this one does not work as expected?
>
> <route>
> <from uri="timer://kickoff?period=10000"/>
> <setBody><el>bla'l</el></setBody>
> <setHeader headerName="Body">
> <el>${in.body}</el>
> </setHeader>
> <setBody>
> <el>
> ${in.body.replace("'","cc")}
> </el>
> </setBody>
> <to uri="mock:Status"/>
> </route>
>
> I have output "blacl" instead of "blaccl"
>
> --
> From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
> is explicitly specified
>
--
>From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
is explicitly specified