If you are looking for software to use, go to Huajun Software Park! software release

Hello, if there is a need for software inclusion, please package the software and attach the software name, software introduction, software-related screenshots, software icon, soft copy, and business license (if you do not have a business license, please provide the front and back of the corresponding developer ID card) and a photo of yourself holding your ID card) and send it to your email http://softwaredownload4.com/sbdm/user/login

Hide>>

Send to email:news@onlinedown.net

Hide>>

Apache MINA

Apache MINA 1.1.7

QR code
  • Software licensing: free software
  • Software size: 3.5MB
  • Software rating:
  • Software type: foreign software
  • Update time: 2024-05-23
  • Application platform: Winxp/vista/win7/2000/2003
  • Software language: English
  • Version: 1.1.7

Download the service agreement at the bottom of the page

Software introduction Related topics FAQ Download address

Basic introduction
Apache MINA segment first LOGO
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 screenshot

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 screenshot

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.

FAQ