日期:2014-05-17 浏览次数:20788 次
<channel-definition id="my-rtmp" class="mx.messaging.channels.RTMPChannel">
<endpoint uri="rtmp://{server.name}:2038" class="flex.messaging.endpoints.RTMPEndpoint"/>
<properties>
<idle-timeout-minutes>20</idle-timeout-minutes>
<client-to-server-maxbps>100K</client-to-server-maxbps>
<server-to-client-maxbps>100K</server-to-client-maxbps>
<!-- for deployment on WebSphere, must be mapped to a WorkManager available in the web application's jndi context.
<websphere-workmanager-jndi-name>java:comp/env/wm/MessagingWorkManager</websphere-workmanager-jndi-name>
-->
</properties>
</channel-definition>
http://127.0.0.1:7001/Flex_Module_1
http://127.0.0.1:7001/Flex_Module_2
http://127.0.0.1:7001/Flex_Module_3
\Flex_Module_1\WEB-INF\flex\services-config.xml
\Flex_Module_2\WEB-INF\flex\services-config.xml
\Flex_Module_3\WEB-INF\flex\services-config.xml
[Flex] RTMP-Server failed to start up: java.net.BindException: Address already i
n use: bind
flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has encountered a f
atal exception starting up: Address already in use: bind
at flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer
.java:310)
(只是例子:)
RTMPServerListerner module_2_or_3 = new RTMPServerListerner(2038端口),
然后,其他 Flex Client 客户端或其他程序需要用到 module_2_or_3 时肯定出错了,因为 module_2_or_3 连绑定初始化的时候已经出现问题,但是,module_1 就没问题。