Dan Rossi wrote:
hi im trying to setup some config settings for my app. How do i collect the settings from the property ie webapp.mySetting all of the howto create red5 applications dont meantion this. Let me know thanks.
  
Apologies , im still trying to recognise i have to trawl Spring docs for these kind of questions, here is what i did

in red5-web.properties

webapp.archivePath=/Volumes/DATA/CamsArchive

in my application bean handler in red5-web.xml

<bean id="web.handler"
        class="demo.Application"
        singleton="true" >
        <property name="archivePath" value="${webapp.archivePath}"/>
    </bean>

in my application i had to also create a setter method for this property which is strange ?

private String archivePath;

public void setArchivePath(String archivePath) {
         this.archivePath = archivePath;
}

Its a bit of work just to get a property loaded but it works :)



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

Reply via email to