consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread ldam
Hi I had some funny problems when getting exchanges from a consumer template, the attached code snippet illustrates a minimal example that demonstrates the problem. My findings are: When getting a batch of files (in my case via an sftp endpoint) doing a consumerTemplate.doneUoW(e) afterwards resu

Re: consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread ldam
I forgot: The test code of course requires an sftp server and bunch of files for it to work (fail) -- View this message in context: http://camel.465427.n5.nabble.com/consumerTemplate-threading-worries-when-having-a-Batch-Consumer-tp5714904p5714906.html Sent from the Camel - Users mailing list ar

Re: consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread ldam
Unfortunately we are not the masters of the filename given :/ The reason we use consumerTemplate is because we use it in an JCA adapter and wants to be in control of the synchronization. kr. ldam -- View this message in context: http://camel.465427.n5.nabble.com/consumerTemplate-threading

Re: consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread ldam
Hi I found that out, which led me to the reasons for the problem above. Will go for that, though it would be nice for consumerTemplate to support batch in the future (in case one forgets that option in a new configuration). Thanks. kr. ldam -- View this message in context: http://camel