[Red5] red5.config_root, webapps specific xyzfile.properties
tom
tomabroad at gmail.com
Wed Mar 4 08:02:00 PST 2009
awesome, beans start to make sense ;-)
On Wed, Mar 4, 2009 at 10:58 AM, Walter Tak <walter at waltertak.com> wrote:
> You can add properties in the red5-web.xml file, inside the "<bean
> id=web.handler> tags like this:
>
> <property name="gatewayAMF"
> value="http://192.168.222.222/amfphp_v12/gateway.php" />
> <property name="ffmpegPath" value="c:\\progs\\wamp\\ffmpeg\\ffmpeg.exe " />
> <property name="snapshotPath"
> value="c:\\progs\\wamp\\www\\online\\snapshots\\" />
> <property name="snapshotInterval" value="90000" />
> <property name="checkInterval" value="90000" />
>
>
>
> For each property create a (setter) method inside your Application class
> like:
>
> public void setSnapshotPath(String path) {
>
> log.info("[F] setSnapshotPath: path=[" + path + "]");
>
> _outputPathSnapshots = path;
>
> }
>
>
> public void setFfmpegPath(String path) {
>
> log.info("[F] setSnapshotPath: path=[" + path + "]");
>
> _pathFFMPEG = path;
>
> }
>
>
> public void setGatewayAMF(String id) {
>
> log.info("[F] setGatewayAMF: id=[" + id + "]");
>
> _gatewayAMF = id;
>
> }
>
> I my case I let the setter method set private variables (Like _gateway etc)
>
> When Red5 loads it will read the properties from [red5-web.xml] and
> automatically call the corresponding methods (setters) inside your
> Application-class.
>
> If you use <name> as a property you should create a <setName> (notice the
> capital) metho.
>
>
>
>
>> hi, i have a settings.properties file with dtaabse credentails in my
>> REd5 - conf direcotry which i can access with:
>>
>> System.getProperty("red5.config_root") + File.separator + filename;
>>
>>
>>>> what i would like to do i sto have this configuration file sitting oin
>>>> my webapp folder. could some give me a hint? thx tom
>>
>>
>>
>>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
--
sip:tomabroad at ekiga.net
More information about the Red5
mailing list