hi,
i have trying to create a route which will write a serialzable java object
using netty TCP component.
The camel route looks like this:
 <process ref="convert.JSON2JAVA"/>

<to uri="netty:tcp://127.0.0.1:2944?requestTimeout=30000"/>

but i am not able to read any data on the socket on my server side which is
listening on 2944 port .

in the log i am seeing the below message
;DEBUG;org.apache.camel.component.netty.NettyProducer;Channel: [id:
0xa68b02a1, L:/127.0.0.1:50407 - R:127.0.0.1/127.0.0.1:2944] writing body:
Request@482b71db
;TRACE;org.apache.camel.component.netty.NettyProducer;Operation complete
DefaultChannelPromise@5ed89a86(failure:
java.lang.UnsupportedOperationException: unsupported message type: Request
(expected: ByteBuf, FileRegion))
;TRACE;org.apache.camel.component.netty.NettyProducer;Channel open: [id:
0xa68b02a1, L:/127.0.0.1:50407 - R:127.0.0.1/127.0.0.1:2944]
;TRACE;org.apache.camel.component.netty.NettyProducer;Exception caught at
Channel: [id: 0xa68b02a1, L:/127.0.0.1:50407 - R:127.0.0.1/127.0.0.1:2944]


>From the logs, the netty producer is expecting the data in ByteBuf format.
Should the data be converted explicilty? i tried the "<convertBodyTo
type="io.netty.buffer.ByteBuf"/>" but it gives out an error during
coversion.

can anyone guide me on how to send Java obj data using Netty TCP producer.?
-- 
Regards,
Rohan Emmanuel

Reply via email to