telnet是TCP传输的协议, 你配置的是UDP    0.0.0.0:8888  *:*  4532,是UDP

解决方案 »

  1.   

    下面是我的配置 给你参考一下 <?xml version="1.0" encoding="UTF-8"?>  
    <beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:aop="http://www.springframework.org/schema/aop" 
    xmlns:tx="http://www.springframework.org/schema/tx" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
    http://www.springframework.org/schema/beans/spring-beans-2.0.xsd  
    http://www.springframework.org/schema/aop 
    http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
    http://www.springframework.org/schema/tx 
    http://www.springframework.org/schema/tx/spring-tx-2.0.xsd" default-autowire="byName">                 


    <!-- 配置IP -->
    <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
    <property name="customEditors">
    <map>
    <entry key="java.net.InetSocketAddress">
    <bean class="org.apache.mina.integration.beans.InetSocketAddressEditor" />
    </entry>
    </map>
    </property>
    </bean>

    <!-- 配置service  -->
    <bean id="ioAcceptor" class="org.apache.mina.transport.socket.nio.NioSocketAcceptor" 
    init-method="bind" destroy-method="unbind" >
    <property name="defaultLocalAddress" value=":6007" />
    <property name="handler" ref="testServiceHandler" />
    <property name="filterChainBuilder" ref="filterChainBuilder" />
    <!-- <bean  class="org.apache.mina.transport.socket.DefaultSocketSessionConfig" >
    <property name="bothIdleTime" value="10"></property>
    <property name="readBufferSize" value="2048"></property>
    </bean> --> </bean>


    <!-- 配置业务处理类 -->
    <bean id="testServiceHandler" class="com.mina.test.service.TestServiceHandler">
    </bean>

    <!-- 配置数据库操作工具类 
    <bean id="du" class="com.mina.test.util.DaoUtil">
    </bean>-->

    <!-- 配置解码器 -->
    <bean id="codec" class="org.apache.mina.filter.codec.ProtocolCodecFilter">
    <constructor-arg>
    <bean class="org.apache.mina.filter.codec.textline.TextLineCodecFactory" />
    </constructor-arg>
    </bean>

    <!-- 配置日志拦截器 -->
    <bean id="logger" class="org.apache.mina.filter.logging.LoggingFilter" ></bean>

    <!-- 将日志和解码器添加 -->
    <bean id="filterChainBuilder" class="org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder">
    <property name="filters">
    <map>
    <entry key="codec" value-ref="codec" />
    <entry key="logger" value-ref="logger" />
    </map>
    </property>
    </bean>
    </beans>
      

  2.   

    参考一下http://download.csdn.net/detail/love777ever/1512122
      

  3.   

    我记得MINA的demo很简单的吧。不要用telnet测。直接写个官方的demo
      

  4.   

    udp用telnet没法测得,下载个专业工具吧