Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7847045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:46:34+00:00 2026-06-02T17:46:34+00:00

I have a one red5 application using flex. Now I just want to develop

  • 0

I have a one red5 application using flex. Now I just want to develop a small web application on top on it using spring mvc (DispatcherServlet). But problem is I could not access the beans defined in red5-web.xml from mvc and also I am not able to access red-web beans from spring mvc. The error is NoSuchBeanDefinitionException.

There is no bridge between the two. Is it possible to get the red5.context in spring mvc. so i can access everything. Here is code snip

red5-web.xml

<beans>
    <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location" value="/WEB-INF/red5-web.properties" />
    </bean>

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

    <bean id="web.scope" class="org.red5.server.WebScope"
         init-method="register">
        <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}" />
    </bean>

    <bean id="live.recorder" class="com.live.application.RecordManager">
        <constructor-arg ref="web.handler" />
    </bean>

    <bean id="web.handler" name="application"
        class="com.live.application.LiveContent"
        singleton="true" autowire="byName" />
</beans>

webapplication-servlet.xml

<beans>

  <context:annotation-config/>
  <context:component-scan base-package="com.live.web"/>
  <context:component-scan base-package="com.live.service"/>
  <mvc:annotation-driven/>

  <bean id="localeResolver" class="org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver"/> 

  <bean class="org.springframework.web.servlet.view.UrlBasedViewResolver">
    <property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView"/>
    <property name="order" value="0"/>
  </bean>
  <bean class="org.springframework.web.servlet.view.BeanNameViewResolver">
    <property name="order" value="1"/>
  </bean>
  <bean name="users.search_results" class="org.springframework.web.servlet.view.json.MappingJacksonJsonView">
    <property name="renderedAttributes" value="users"/>
  </bean>

  <bean name="system.status" class="org.springframework.web.servlet.view.json.MappingJacksonJsonView">
    <property name="renderedAttributes">
      <set>
        <value>status</value>
        <value>notifications</value>
      </set>        
    </property>
  </bean>
  <bean name="system.update" class="org.springframework.web.servlet.view.json.MappingJacksonJsonView">
    <property name="renderedAttributes">
      <set>
        <value>error</value>
        <value>status</value>
        <value>notification</value>
      </set>        
    </property>
  </bean>

</beans>

I used spring annotation for controller and service.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T17:46:36+00:00Added an answer on June 2, 2026 at 5:46 pm

    Finally I fixed this issue. The problem is

    Usually spring DispatcherServlet(MVC) creates one web context and sets parents as ApplicationContext loaded by spring mvc ContextLoaderListener. Red5 has own context loader listener and its loads own context. There is no relation between the two context.

    To override this we have to set red5 ApplicationContext as parent context of DispatcherServlet. For that you have to override initWebApplicationContext() functions in Dispatcherservlet.

    I wrote a blog entry for that refer this http://www.arulraj.net/2012/04/red5-with-spring-mvc.html
    GIT repo is https://github.com/arulrajnet/red5Demo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a red5 application in Java. it just means that I have a
Have one application in SVN (on unfuddle.com). Want to add a new application (related
I have one application which uses the standard .NET forms authentication cookie, now I
I have one stand alone client server application. I want to move it to
I have one string which is base 32 bit decoded now I want to
I have one Sqlite Database file. I want to share my sqlite database between
I have one file one.php <?php //just a php function doen't have to do
I have one testing module that I want to use for android testing. I
I have one page design with scrolling eased by jquery using this code: function
I have one main form, and i want to dynamically change it's content, via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.