- bson4jackson
- jackson-core
- jackson-annotations
- jackson-databind
- netty 4.x
- java 1.7+
- Download and install all required libs, take care that they are in your
CLASSPATH
- Define the port you want to use in
config.props
- Create client commands by inherit from
BaseClientCmd
(seeClientCmdMessageException)
and create equal commands on client - Create server commands by inherit from
BaseServerCmd
(seeServerCmdLogout
) and create equal commands on client - Every client-server connection is associated with a
Client
andCommandManager
object. TheCommandManager
is directly connected to the Netty layer and handles incoming/outgoing commands, whileClient
represents the connected client - Run with
java TcpBsonServer config.props