codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

large xml files using groovy


Hi,

I created a camel route using a soap endpoint (contract first) using format
PAYLOAD.

My question is, what's the best approach to read large xml messages (up to
20mb)  using groovy xmlSlurper? This slurper accepts a java.io.Reader as
input. Is it possible to do something like:


def xml = exchange.getIn().getBody(java.io.Reader);


And should I enable streamCache = true on my route?


Regards,


Raymond