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.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
If you are using netty at client and server side then you can use the Netty ObjectDecoder and ObjectEncoder in your
ChannelPipeline
to 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.