Building a TCP Server with Apache Mina

Apache Mina is a rock-solid framework to build high performant network applications. Mina provides sockets using NIO Framework with non-blocking IO fashion. Using mina you can build a TCP Server/Client, FTP Server, SShd lib, or an XMPP server. Today I want to explore a TCP Server/Client simple application protocol using Apache Mina. So I made a simple POC so how the application working and also used Junit to test the app. There is a video explaining in detail how it works. So Let’s get started.

The Video

The Code

Cheers,

Diego Pacheco

Originally published at http://diego-pacheco.blogspot.com on February 25, 2021.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store