[Red5] properties file for Red5 application - How to?

james taylor jimothyinnewcy at hotmail.com
Wed Jul 23 07:21:32 PDT 2008


Have you tried something like this:
 
IScope scope = Red5.getConnectionLocal().getScope();
Resource propertyFile = scope.getResource("data.properties");
 
BufferedReader br = new BufferedReader(new FileReader(propertyFile.getFile()));
 
 
dunno if thats any help   :-)
 
James




Date: Wed, 23 Jul 2008 22:18:01 +0800From: petedao at gmail.comTo: red5 at osflash.orgSubject: [Red5] properties file for Red5 application - How to?

Hi,
 
I need to load a properties file within my Red5 application.  I am using : properties.load(new FileInputStream("data.properties")) to load up the properties from a file. 
 
I placed data.properties inside WEB-INF and WEB-INF/lib, but Red5 still can't pick it up and I get FileNotFoundException.
 
How do I get the properties file to work?
 
Thanks in advance for your help.
 
Pete
_________________________________________________________________
Invite your Facebook friends to chat on Messenger
http://clk.atdmt.com/UKM/go/101719649/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080723/e0a9cc07/attachment.html 


More information about the Red5 mailing list