camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Camel stream with url
Date Thu, 16 Jul 2009 14:32:44 GMT
Hi,

I have created a unit test to test a file uri with stream :

Here is the url used

stream:url:file:///./target/stream/scanstreamfile.txt?scanStream=true&scanStreamDelay=100

but it does not work. Error occurs during the doStop() execution because no
executor has been created at this line
executor =
ExecutorServiceHelper.newSingleThreadExecutor(endpoint.getEndpointUri(),
true);

What is strange is that when the following method is called

   private InputStream resolveStreamFromUrl() throws IOException {
        String u = endpoint.getUrl();
        ObjectHelper.notEmpty(u, "url");
        if (LOG.isDebugEnabled()) {
            LOG.debug("About to read from url: " + u);
        }

the url returned by endpoint.getUrl() is null

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message