(The source code of an Apache MINA use case. Message reception, for example, displays the received message. With this example, you can learn how to create and open a session. The biggest difference from sessionCreated is that it is called from another thread and the session ends. When the connection is closed, it is called and exceptions are caught. Mina will automatically close the connection, receive messages, send messages, set loggers Set connection timeout detection time, set coding filter, create client connector, release connection, etc. This document includes the following annexes:)