Background:
C# WPF application talking to JAVA server running on linux via ActiveMQ(Apache.NMS) / JSON(Newtonsoft.Json)
Problem:
JSON messages greater than 85000 bytes lead to LOH fragmentation
Possible solution:
Instead of reading the JSON as an Apache.NMS.ITextMessage (which is currently the case),
get the underlying stream handle and deserialize using JsonTextReader
Implementation issues:
It would appear that this is not supported by Apache.NMS API although
there are ActiveMQStreamMessage/ActiveMQBytesMessage variants which
doesn't really fit the bill here.
I would like to know if anybody has got any experience on above?