I am not using a textline codec. It supports only for String. I am
transferring object.  From the external world, it is received using
BigEndianHeapChannelBuffer 
 
                        BigEndianHeapChannelBuffer buf =
(BigEndianHeapChannelBuffer) exchange.getIn().getBody();
                      
                          byte [] byt = buf.array();
                     
                        ByteArrayInputStream  in = new
ByteArrayInputStream(byt);
                        ObjectInputStream is = new ObjectInputStream(in);
                        
                        TreeMap mapVal = (TreeMap)is.readObject();
                        
                        exchange.getIn().setBody(mapVal,TreeMap.class);
 
And from here, I am sending as Tree Map to the next camel. The problem
occurs only when I send back the response to this Camel. That too only above
1MB.
 

Jude Solomon 




--
View this message in context: 
http://camel.465427.n5.nabble.com/Not-able-to-transfer-larger-bytes-of-data-from-one-came-to-another-tp5737811p5738011.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to