users@jersey.java.net

[Jersey] Anybody have any luck with ChunkedOutput outside of String payload

From: Anil Pinto <anilrpinto_at_outlook.com>
Date: Tue, 8 Apr 2014 12:26:13 -0700

Hello,

I have been wrestling with the ChunkedOutput/ChunkedInput implementation in Jersey 2.7 and am not having much luck retrieving chunks as the example promises.

I need to exchange chunks of mixed content type, so I started with MultiPart as th obvious choice, but no luck there.

Then to atleast make some progress I tried to send a set of chunked JAXB objects (instead of simple Strings as in the example) but no luck there as well as only first object is returned to the client.

If the ChunkedInput is read as a String I see a JSON for each chunk but all clubbed together and returned as one set which does not help.

I am suspecting something going on with the ChunkParser and need some guidance.

Any help to move ahead is greatly appreciated.

Anil.