camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tide08 <sachin2...@yahoo.com>
Subject Re: Velocity component use of org.apache.camel.velocity.resourceUri header
Date Thu, 23 Jul 2009 21:48:09 GMT

I have create Jira for this issue:

https://issues.apache.org/activemq/browse/CAMEL-1850

Thanks!

Claus Ibsen-2 wrote:
> 
> Hi
> 
> Good idea, please add a ticket in JIRA for the enhancement. The other
> similar components such as freemarker and stringtemplate should
> benefit as well if the code is done in camel-spring in the base class.
> 
> 
> 
> On Thu, Jul 23, 2009 at 12:46 AM, tide08<sachin2_2k@yahoo.com> wrote:
>>
>> Thanks Jon! I had to defer back to use custom beans. I tried extending
>> velocity endpoint but ended up duplicating everything as resource uri and
>> buffer is not exposed.
>>
>> May be it is good idea to make velocity endpoint use some header as
>> template
>> resource? Is there something similar for 2.0?
>>
>>
>>
>> tide08 wrote:
>>>
>>> Can someone provide information on how to make use of
>>> org.apache.camel.velocity.resourceUri header for velocity component? As
>>> per document this should be templateName as String.
>>>
>>> I don't want to provide templateName in route but use the header
>>> mentioned
>>> above. But looks like templateName is required for route to be correct.
>>>
>>> from("direct:start")
>>> .to("velocity:testTemplate.vm")
>>>
>>> I tried providing dummy templateName in route and than set the
>>> org.apache.camel.velocity.resourceUri  header with actual template I
>>> want
>>> to use but it still uses the dummy template provided in route.
>>>
>>> Am I misunderstanding use for that header? Please help.
>>>
>>> Thanks
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Velocity-component-use-of-org.apache.camel.velocity.resourceUri-header-tp24592228p24616241.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: http://www.nabble.com/Velocity-component-use-of-org.apache.camel.velocity.resourceUri-header-tp24592228p24635231.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message