camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chinababu Illa <>
Subject Streaming a PDF from remote machine
Date Mon, 13 May 2013 11:38:43 GMT
Hi All,

I have a requirement to read a pdf as binary stream from remote application
within specified time. 
My application code is using BufferedInputStream to read from remote
application, code is implemented in Java. 

While reading the data, I need to apply 2 different timeouts:
1) a timeout for individual (if this waits
longer, it will be timedout)
2) a timeout for entire file to be download (say 2 min, if the file is not
completely downloaded within 2 min,  then timeout)

I have a solution using timeout calculation manually, but it is not elegant
So wanted to know if this can be done using camel. I looked into stream
component but didn't quite understood.

Please let me know if above 2 requirements can be implemented using camel.

Note: None of the two applications are using Files here. My remote
application gets the stream data from different application.


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

View raw message