camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mccabejj@gmail.com" <mccab...@gmail.com>
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.  
http://camel.apache.org/xslt.html http://camel.apache.org/xslt.html 

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: http://camel.465427.n5.nabble.com/Camel-XSLT-Component-Load-XSLT-from-database-tp5033499p5033499.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message