[ 
https://issues.apache.org/activemq/browse/CAMEL-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57230#action_57230
 ] 

Willem Jiang commented on CAMEL-2423:
-------------------------------------

Supporting to set the BeanClassLoader from the component is a good way to let 
the user get the power of control.
I checked the code of camel-velocity and camel-stringtemplate, they are littler 
different from Freemarker, so I doesn't applied the change on to these two 
component.  
It could be great that Frank submit a new patch for upper two component.

> Freemarker template not found due to wrong classloader
> ------------------------------------------------------
>
>                 Key: CAMEL-2423
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2423
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 
> 2.0.0, 2.1.0
>            Reporter: Frank Schwarz
>            Assignee: Willem Jiang
>             Fix For: 1.6.3, 2.2.0
>
>         Attachments: freemarker.patch
>
>
> Freemarker templates are loaded with 
> org.springframework.core.io.Resource-class's classloader. This does not work 
> when Spring is part of the classloader realm of the application's parent 
> classloader.
> Proposed patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to