[EMAIL PROTECTED] írta:
> Hi, this may be a question of ignorance of Java but I'll appreciate an
> answer however.
> it will help me alot.
> I need to call the method getListOfAvailableFlvs()in the Application
> class(serverside) instead of from the actionscript in the swf as in
> the oflademo example.
> the method will be called in the appStart method of my Application.
>
> would it be best to use -import- to access the demoservice in the
> Application or rather integrate the demoservice into the application
> class and having all the methods available in one class.
> If i need to use "import", what will be the path to the demoservice
> then?
>
> Sloopy
> Thanks in advance
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> __________ NOD32 1.1700 (20060810) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>
Hi!
I integrated the DemoService into the main Application Class and then:
red5-web.xml
<bean id="web.handler"
class="org.red5.server.webapp.oflaDemo.Application"
singleton="true" />
<!-- This is a comment <bean id="demoService.service"
class="org.red5.server.webapp.oflaDemo.DemoService"
singleton="true" /> -->
If you want to leave separate, you shouldn't use import, if the
DemoService.java is in the same directory.
DemoService myService = new DemoService();
Map myMap = myService.getListOfAvailableFLVs();
Gabor
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org