How to send bean from server side and receive this bean in the client side by Netty? When I send simple integer message, inputstream, it works successfully but I need to send bean.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using netty at client and server side then you can use the Netty ObjectDecoder and ObjectEncoder in your
ChannelPipelineto send and receive objects.Take a look at the netty ping pong example which does this. The code is bit out of date, but you will get the general idea on working with objects.