camel-users mailing list archives

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

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, mccabejj@gmail.com <mccabejj@gmail.com> 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.
> 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.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message