Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Spring configuration Red 5

    • 0
    • 4
    • 3
    • 1
    • 0
    • 0
    • 0
    • 0
    • 597
    Comment on it

    Red5 Media Server delivers a powerful video streaming and multi-user solution to the Adobe Flash Player and other exciting client technologies. Based on Java and some of the most powerful open source frameworks, Red5 stands as a solid solution for business of all sizes including the enterprise. Red5 includes support for the latest multi-user APIs including NetConnection, NetStream and SharedObjects while providing a powerful RTMP / Servlet implementation. In addition to support for the RTMP protocol, the application server has an embedded Tomcat Servlet container for JEE Web Applications.

    Red5 Media Server is truly open and extensible platform that can be used in Video Conferences, Multi-User Gaming and Enterprise Application Software. Application development draws additional benefits from the Spring Framework and Scope based event driven services.

    Please refer this to understand the Hibernate environment in Spring. You can configure hibernate as the same way discussed. In this case Red 5 is your "Spring Container". Use red5-web.xml under WEB-INF folder to configure spring's beans.

    Red 5 creates a scope bean. Red 5 access scope by receiving reference from pre-defined instance via bean reference -

    <bean id="web.scope" class="org.red5.server.WebScope"
            <property name="server" ref="red5.server" />
            <property name="parent" ref="global.scope" />
            <property name="context" ref="web.context" />
            <property name="handler" ref="web.handler" />
            <property name="contextPath" value="${webapp.contextPath}" />
            <property name="virtualHosts" value="${webapp.virtualHosts}" />

    The following bean is requires following dependencies before created -

    <bean id="web.context" class="org.red5.server.Context"
            autowire="byType" />
    <bean id="web.handler" 
             scope="singleton" />

    Where "" inherits "org.red5.server.adapter.ApplicationAdapter"

    That will enable spring to create scope and Red 5 is ready to listen the application scope.


 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: