<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:redisson="http://redisson.org/schema/redisson"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
        http://redisson.org/schema/redisson http://redisson.org/schema/redisson/redisson.xsd
        ">

    <redisson:client id="redissonClient">
        <redisson:single-server address="redis://${redis.host}:${redis.port}"
                                password="${redis.password}"
                                connection-pool-size="${redis.maxTotal}"/>
    </redisson:client>

    <bean id="messageServer" class="com.tipdm.framework.dmserver.websocket.SocketServer" init-method="init"
          destroy-method="stop">
        <property name="rpcAddress" value="127.0.0.1:10001"/>
        <property name="port" value="${websocket.port}"/>
    </bean>
</beans>