Hello Sergey,


Wednesday, June 20, 2007, 1:55:14 PM, you wrote:


>

Hi All,


  I going to read/modify attributes of bean streamFilenameGenerator during my application works.

  How I can access to this bean from my application.


  This bean declared in red5-core.xml 

    <bean id="streamFilenameGenerator" class="...new....FilenameGenerator"> 

          <property name="recordPath" value="file://...." />

              <property name="playbackPath" value="file://..." />

   </bean>




Sergey N Lukin



Are you familiar with Spring concepts?

You may wire that bean via your spring config, or may get it explicitly from code (where you have access to the IContext instance - e.g., your red5 application main class) 


public class MyApp extends ApplicationAdapter {

...

       StreamFilenameGenerator sfGen = getContext().getBean("streamFilenameGenerator");

}


-- 

Best regards,

 Alexey                            mailto:[EMAIL PROTECTED]

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to