You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gnanaguru S <gn...@gmail.com> on 2014/04/01 02:45:53 UTC
Camel XSLT Param - Issue ( Body is null )
Hi,
I am passing a parameter to the XSL through the header. But since the body
is null it is not generating the XML. Any ideas ? I went through the
documentations and sample, but I couldnt really find a good example for
using XSLT Parameters in Camel. This is my route.
<route>
<from uri="timer://TestTimer?period=5000" />
<setHeader headerName="instanceId">
<constant>VS</constant>
</setHeader>
<to uri="xslt:file:c://vivek//transform.xsl" />
<log message=" Message body : ${body}" />
<to uri="file:c://vivek//output.xml" />
</route>
Exception:
2014-04-01 11:36:33,473 ERROR (Camel (test-gateway) thread #951 -
timer://TestTimer) [org.apache.camel.processor.DefaultErrorHandler]
147-org.apache.camel.camel-core:2.10.0.redhat-60024 | Failed del
ivery for (MessageId: ID-XXXXXX-XXXXX-54382-1396237435562-32-1 on
ExchangeId: ID-XXXXXX-XXXXX-54382-1396237435562-32-2). Exhausted after
delivery attempt: 1 caught: org.apache.camel.ExpectedBodyT
ypeException: Could not extract IN message body as type: interface
javax.xml.transform.Source body is: null
org.apache.camel.ExpectedBodyTypeException: Could not extract IN message
body as type: interface javax.xml.transform.Source body is: null
at
org.apache.camel.builder.xml.XsltBuilder.getSource(XsltBuilder.java:485)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:125)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:101)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.component.xslt.XsltEndpoint.onExchange(XsltEndpoint.java:81)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:71)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:81)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:308)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:135)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at
org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:63)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
at java.util.TimerThread.mainLoop(Timer.java:555)[:1.7.0_51]
at java.util.TimerThread.run(Timer.java:505)[:1.7.0_51]
Regards
Guru
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XSLT-Param-Issue-Body-is-null-tp5749582.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel XSLT Param - Issue ( Body is null )
Posted by Claus Ibsen <cl...@gmail.com>.
The xstl component expects the body to contain XML which is used for
the XML transformation.
On Tue, Apr 1, 2014 at 2:45 AM, Gnanaguru S <gn...@gmail.com> wrote:
> Hi,
>
> I am passing a parameter to the XSL through the header. But since the body
> is null it is not generating the XML. Any ideas ? I went through the
> documentations and sample, but I couldnt really find a good example for
> using XSLT Parameters in Camel. This is my route.
>
> <route>
> <from uri="timer://TestTimer?period=5000" />
> <setHeader headerName="instanceId">
> <constant>VS</constant>
> </setHeader>
> <to uri="xslt:file:c://vivek//transform.xsl" />
> <log message=" Message body : ${body}" />
> <to uri="file:c://vivek//output.xml" />
> </route>
>
> Exception:
>
> 2014-04-01 11:36:33,473 ERROR (Camel (test-gateway) thread #951 -
> timer://TestTimer) [org.apache.camel.processor.DefaultErrorHandler]
> 147-org.apache.camel.camel-core:2.10.0.redhat-60024 | Failed del
> ivery for (MessageId: ID-XXXXXX-XXXXX-54382-1396237435562-32-1 on
> ExchangeId: ID-XXXXXX-XXXXX-54382-1396237435562-32-2). Exhausted after
> delivery attempt: 1 caught: org.apache.camel.ExpectedBodyT
> ypeException: Could not extract IN message body as type: interface
> javax.xml.transform.Source body is: null
> org.apache.camel.ExpectedBodyTypeException: Could not extract IN message
> body as type: interface javax.xml.transform.Source body is: null
> at
> org.apache.camel.builder.xml.XsltBuilder.getSource(XsltBuilder.java:485)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:125)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:101)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.component.xslt.XsltEndpoint.onExchange(XsltEndpoint.java:81)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:71)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:81)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:308)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:135)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at
> org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:63)[147:org.apache.camel.camel-core:2.10.0.redhat-60024]
> at java.util.TimerThread.mainLoop(Timer.java:555)[:1.7.0_51]
> at java.util.TimerThread.run(Timer.java:505)[:1.7.0_51]
>
> Regards
> Guru
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-XSLT-Param-Issue-Body-is-null-tp5749582.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io
Re: Camel XSLT Param - Issue ( Body is null )
Posted by Gnanaguru S <gn...@gmail.com>.
It worked after adding some dummy payload :)
<route>
<from uri="timer://TestTimer?period=5000" />
<to uri="string-template:Dummy.xml" />
<setHeader headerName="instanceId">
<constant>VS</constant>
</setHeader>
<to uri="xslt:file:c://vivek//transform.xsl" />
<to uri="file:c://vivek//output.xml" />
</route>
Cheers
Guru
gnanaguru.com
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XSLT-Param-Issue-Body-is-null-tp5749582p5749583.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Aw: Re: Camel XSLT Param - Issue ( Body is null )
Posted by Gnanaguru S <gn...@gmail.com>.
Thanks Guys,
@Pascal, Thats the idea. but my question is I dont want to send any payload
to the exchange. But just the parameter value. I am able to set the
parameter value using the setHeader, but XSLT expects a body too. ( Refer my
route with timer endpoint above ). When I add a dummy body using
Stringtemplate it works.
@Reji, Thanks. Let me work on it. Or may I have to rethink about the design.
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XSLT-Param-Issue-Body-is-null-tp5749582p5749647.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Aw: Re: Camel XSLT Param - Issue ( Body is null )
Posted by Pascal Klink <pa...@web.de>.
Hi Guru,
I don't know if I get the problem right but you can set parameters on xsl processing through headers.
Sou you can do:
<from .../>
...
<setHeader name="myParameter">...</setHeader>
<to uri="xslt:..."/>
Then in the xsl file you can do:
<xsl:param name="myParameter"/>
And then you can reference it during processing with ${myParamter}. So you do could extract the interesting thing form the message and only put this in a specific header so that it is available for xslt processing. Does that help you?
Greetings,
Pascal
_____________________________________________________________________________________________________________________________________________________________________
Gesendet: Dienstag, 01. April 2014 um 16:14 Uhr
Von: "Reji Mathews" <co...@gmail.com>
An: users@camel.apache.org
Betreff: Re: Camel XSLT Param - Issue ( Body is null )
Hi Guru
I doubt if you can send parameters to xsl component.
The body has to contain a XML payload. Or maybe u might need to do it in
custom java code using camel processor .
How about temporarily swapping the parameter value with the exchange body
just before using the xslt component and restore it back after the xsl
transformation is done .
Regards
Reji
On 01/04/2014 9:58 am, "Gnanaguru S" <gn...@gmail.com> wrote:
> What will happen in case if I use a JMS endpoint ?
>
> 1. I have a request message from a JMS queue, once the message is received
> I
> want to pass a parameter to the XSL file.
>
> 2. But I dont want to send the payload from the JMS queue to the xsl !
>
> Any thoughts ?
>
> Regards
> Guru
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-XSLT-Param-Issue-Body-is-null-tp5749582p5749589.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: Camel XSLT Param - Issue ( Body is null )
Posted by Reji Mathews <co...@gmail.com>.
Hi Guru
I doubt if you can send parameters to xsl component.
The body has to contain a XML payload. Or maybe u might need to do it in
custom java code using camel processor .
How about temporarily swapping the parameter value with the exchange body
just before using the xslt component and restore it back after the xsl
transformation is done .
Regards
Reji
On 01/04/2014 9:58 am, "Gnanaguru S" <gn...@gmail.com> wrote:
> What will happen in case if I use a JMS endpoint ?
>
> 1. I have a request message from a JMS queue, once the message is received
> I
> want to pass a parameter to the XSL file.
>
> 2. But I dont want to send the payload from the JMS queue to the xsl !
>
> Any thoughts ?
>
> Regards
> Guru
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-XSLT-Param-Issue-Body-is-null-tp5749582p5749589.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: Camel XSLT Param - Issue ( Body is null )
Posted by Gnanaguru S <gn...@gmail.com>.
What will happen in case if I use a JMS endpoint ?
1. I have a request message from a JMS queue, once the message is received I
want to pass a parameter to the XSL file.
2. But I dont want to send the payload from the JMS queue to the xsl !
Any thoughts ?
Regards
Guru
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XSLT-Param-Issue-Body-is-null-tp5749582p5749589.html
Sent from the Camel - Users mailing list archive at Nabble.com.