Chunking the payload could become a bit complicated, but we did
experiment passing on the payload in a (file) input stream to avoid
loading the entire xml in memory at the binding level, and the stream
can be processed as needed. This is especially memory friendly in a
pass-through kind of work flow. Unfortunately, there are details we
still need to iron out collaborating with other ESB components in terms
of managing the stream, for obvious things such as to establish the
protocol to close the stream.
In this case, we're dealing with a file stream, but the same
protocol/mechanism can apply to other binding resources. Could you
please log a RFE so that we can prioritize this on the component plan?
Regards
--Sherry
Raffaele Spazzoli wrote:
> Hi,
> in our integration scenario we have a file-bc that read a very large
> file (it could be several GigByte). Such large file should be encoded in
> xml and brought in memory. Clearly this isn't possible with these size
> since it would cause glassfish esb to exhaust the available memory.
> More in general an application that receive incoming data should have
> some degree of control on the size of data it reads.
> So is the a feature in the file-bc that allows to split the read file on
> chunks of configurable size before reading data into memory?
> Or may is there a sort of streaming feature for reading such big files?
>
> thanks
> Raffaele
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
[hidden email]
> For additional commands, e-mail:
[hidden email]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]