camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Camel XSLT Component - Load XSLT from database
Date Tue, 29 Nov 2011 20:00:54 GMT
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:

I then added the following to my route:

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"

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.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message