camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tarjei Huse <tar...@scanmine.com>
Subject Streaming splitter with custom split method
Date Wed, 29 Sep 2010 10:44:35 GMT
 Hi, I got a huge file I want to split into smaller chunks and send each
chunk as a new message using the splitter. The file contains Protobuf
objects so I cannot use any of the normal splitting methods, but I want
to use the streaming() method on the route. How do I create a splitter
that supports this?

I.e:
FileSplitter fs = new FileSplitter();
 from("file://myfile")
            .routeId(InjectFiles.class.getSimpleName())
            .split().method(fs,
"splitMessage").streaming().stopOnException()


-- 
Regards / Med vennlig hilsen
Tarjei Huse
Mobil: 920 63 413


Mime
View raw message