Hi,

thanks for the quick fix :)


I think I tried turning off the inlining during the upgrade to 4.x but had some 
other problems, that’s why I refactored it then anyway.

It’s not that urgent, so I can wait for the fixed version.

Thanks

> On 02.07.2024, at 13:08, Claus Ibsen <claus.ib...@gmail.com> wrote:
> 
> Hi
> 
> https://issues.apache.org/jira/browse/CAMEL-20933
> 
> On Tue, Jul 2, 2024 at 1:03 PM Claus Ibsen <claus.ib...@gmail.com> wrote:
> 
>> 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
>> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to