o(╥﹏╥)oSad

WeChat cannot downloadApache MINA, but just click on the upper right corner and select open in browser or Safari!
Apache MINA

Apache MINA

  • Size: 3.5M
  • Language: English
  • category: programming tools
  • System: Winxp/vista/win7/2000/2003

Apache Mina is a framework that helps users develop high-performance and highly scalable network applications. It provides abstract, event-driven, asynchronous APIs based on TCP/IP and UDP/IP protocols through Javanio technology.

Apache MINA

What is Apache MINA?


Apache's Mina (Multipurpose Infrastructure Networked Applications) is a network application framework that can help users develop high-performance and highly scalable network applications; it provides an abstract, event-driven asynchronous API that enables JavaNIO to operate on various transport protocols (such as TCP /IP, UDP/IP protocol, etc.) for rapid and efficient development.

ApacheMina is also known as:

​ ​ NIO Framework

​ ​ Network socket (networkingsocket) class library

​ ​ Event-driven asynchronous API (note: asynchronous API has also been added in JDK7)

In short: We simply understand that it is a communication framework that encapsulates underlying IO operations and provides high-level operation APIs!

Communication model of Apache MINA


Since I am using object transfer, only object transfer is listed here.

Apache MINA

How to use Apache MINA


​ ​ 1. Download the mina compressed package;

​ ​ 2. Import the jar package inside into the project;

3. After completing these two steps, it still cannot be used. If we write the program and start it, the following error will be reported:

SLF4J:Failedtoloadclass"org.slf4j.impl.StaticLoggerBinder".

SLF4J:Seehttp://www.slf4j.org/codes.html#StaticLoggerBinderforfurtherdetails.

​​Exceptioninthread"main"java.lang.NoClassDefFoundError:org/slf4j/impl/StaticLoggerBinder

              aorg.slf4j.LoggerFactory.(LoggerFactory.java:60)

Atorg.apache.mina.Core.service.simpleiProcessorPool.(SimpleIoProcessorPool.java:81)

              ag.apache.mina.core.polling.AbstractPollingIoAcceptor.(AbstractPollingIoAcceptor.java:104)

                                                        ag.apache.mina.transport.socket.nio.NioSocketAcceptor.(NioSocketAcceptor.java:66)

atminaserver.MinaServer.main(MinaServer.java:19)

Causedby:java.lang.ClassNotFoundException:org.slf4j.impl.StaticLoggerBinder

atjava.net.URLClassLoader$1.run(URLClassLoader.java:200)

atjava.security.AccessController.doPrivileged(NativeMethod)

atjava.net.URLClassLoader.findClass(URLClassLoader.java:188)

atjava.lang.ClassLoader.loadClass(ClassLoader.java:306)

atsun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)

atjava.lang.ClassLoader.loadClass(ClassLoader.java:251)

atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

...5more

​ ​Obviously, the class org/slf4j/impl/StaticLoggerBinder cannot be found, so we need to introduce another jar package, so we need to download slf4j-nop-1.5.2.jar and introduce it into the project.

​ ​ 4. After everything is done, we can write our mina server and client.

Version: 1.1.7 | Update time: 2024-05-23

Similar recommendations

Latest updates

Apache MINA Review

  • 1st floor Huajun netizen 2019-03-23 ​​04:45:41
    Apache MINA is very useful, thank you! !
  • 2nd floor Huajun netizen 2019-02-09 08:04:05
    The interface design of Apache MINA is very easy to use and has rich functions. I highly recommend it!
  • 3rd floor Huajun netizen 2018-11-06 03:28:26
    Apache MINA software is very easy to use, downloads quickly and is very convenient!

Recommended products

Everyonealso likeThese:

+

This application has not passed real-name authentication. You can download it through the mobile assistant.

CancelOK