How do I stream large messages through the camel splitter (vs loading the whole message into memory)

Solution Unverified - Updated -

Environment

  • Fuse Mediation Router 2.x

Issue

How do I stream large messages through the camel splitter (vs loading the whole message into memory

Resolution

You can split streams by enabling the streaming mode using the streaming builder method

from("direct:streaming").split(body().tokenize(",")).
   streaming().to("activemq:parts");

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments