<< 29-August-2008 : hausbot on #camel at codehaus [download] [back] >>
 
 
time nick message

06:56

<gertv>

willem: ping

06:59

<willem>

gertv:pong

06:59

<willem>

pong

07:00

<gertv>

willem: I think there might be a problem with the fix for CAMEL-520

07:00

<gertv>

willem: it handles an InputStream, but what about all other streaming data (StaxSource, Reader, ...)?

07:01

<gertv>

willem: I think we need the logic from the StreamCachingINterceptor instead

07:02

<willem>

gertv: OK, I will dig more about it.

07:03

<willem>

gertv: Please feel free to add your comments on the JIRA.

07:03

<gertv>

sure, just wanted to make sure before I did that

07:06

<willem>

BTW StreamCachingInterceptor does not rest the stream cache.

07:06

<gertv>

willem: perhaps we should add this to it then

07:07

<gertv>

willem: not sure every kind of streaming data allows resetting the stream

07:08

<willem>

you need to reset the inputstream.

07:08

<willem>

I am looking at the StreamCacheConverter.

07:09

<willem>

How can we cache for the Reader?

07:09

<gertv>

well, the converter isn't there yet

07:09

<gertv>

but it would be almost the same as handling the inputstream or streamsource

07:10

<gertv>

how about adding a reset() method to the StreamCache interface?

07:11

<gertv>

thinking of it, every kind of StreamCache should allow a reset()

07:11

<gertv>

if the data is cached, it can be reset() as well

07:12

<gertv>

and we could add the interceptor around the deadletterchannel

07:12

<gertv>

and in the deadletterchannel, if the content is a StreamCache, reset() the cache

07:12

<gertv>

wdyt?

07:16

<willem>

yeah, and I just find a to do the cache for Reader.

07:17

<willem>

Reader -> String -> Reader

07:19

<willem>

Shall we need to the same thing for the output stream ?

07:31

<gertv>

Reader thing sounds fine for me

07:32

<gertv>

we probably need a few others as well (Sax/StaxSOurce?)

07:32

<gertv>

I don't think we need it for the output stream

07:34

<willem>

OK, I will take care of the {Sax|Stax}Source.

07:34

<willem>

Now, I add void reset() throws IOException; in StreamCache.

Drone v1.4 © 2002-2005 Uwyn RIFE powered