Hi

You can turn off inlining rest to have it old behaviour.

And yeah lets see if we can add that option to rest-dsl also.


On Tue, Jul 2, 2024 at 11:55 AM Peter Nowak <peter.no...@ecosio.com.invalid>
wrote:

> Hi all,
>
> used version: camel 4.6.0
>
> We have "stream caching" disabled by default (on context level, to
> ensure the same behaviour of our routes as it was in <3.14) and only
> disable it for certain routes when needed.
>
> I have now encountered a problem with streaming a big json message
> back to the client via "camel-rest" - it results in an OOM exception
> because all the content is buffered in memory in the
> "OutputStreamBuilder".
>
> With "stream caching" enabled it works, but i can't enable stream
> caching on the "rest route" because the "RestDefinition" does not have
> that option anymore since the rework of not being a "normal" route
> definition.
> Enabling "stream caching" on the called "direct" route also has no effect.
>
> Would it be possible to add the "streamCache" DSL option to the REST
> routes (RestDefinition) too?
>
> Best regards,
> Peter
>
> --
> Peter Nowak
> peter.no...@ecosio.com
> ecosio GmbH
> Lange Gasse 30 | 1080 Wien | Austria
> VAT number: ATU68241501, FN 405017p, Commercial Court Vienna
> Managing Directors: Christoph Ebm, Philipp Liegl, Marco Zapletal
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to