camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel XSLT Component - Load XSLT from database
Date Wed, 30 Nov 2011 19:44:37 GMT

Can you try the 2.9.0-RC1 release.

We have moved the xslt component from camel-spring to camel-core. And
as part of that move, the logic for loading the xslt resource changed
to be non-spring dependent and thus it may work now with http.

On Tue, Nov 29, 2011 at 9:00 PM, <> wrote:
> I'm new to camel so please go easy on me.
> First - I'm using *Camel-2.8.2*.
> For our application we would like to store our XSLT files in the database
> rather than in the file system.  We have an "endpoint artifact" table that
> has an column called "content" which contains the XSLT.
> Based on the available XSLT loading options my thought was to use HTTP.
> To that end I created a very simple Java Servlet to load the "endpoint
> artifact" from the database and return the XSLT content as the response
> (with content type of text/xml).  I believe this is working as I'm able to
> see the XSLT being returned (also viewable in the browser).
> The "loader" URL is something like:
> http://localhost:7001/gateway/serviceEndPointArtifactLoader?id=6&name=TEST
> I then added the following to my route:
> <to
> uri="xslt:http://localhost:7001/gateway/serviceEndPointArtifactLoader?id=6&amp;name=TEST"/>
> Trying to start this route yields an exception containing the following:
> "Cannot be resolved to absolute file path because it does not reside in the
> file system: http://localhost:7001/gateway/serviceEndPointArtifactLoader"
> Questions:
> 1.) Syntactically does the "to" on my route look OK?
> 2.) If so, is what I'm trying to do supported by Camel?  I debugged the
> XSLTComponent class a bit, and it doesn't really look like it, though I
> could have easily missed something.
> Thanks in advance to any that are able to provide help and guidance.
> JM
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message