[Red5] IScheduledJob
Carl Sziebert
carlsz at gmail.com
Tue Nov 27 11:22:56 PST 2007
Why not just inject your ApplicationAdapter subclass into the service
definition in red5-web.xml. Then you can do exactly what you suggest:
app.addScheduledJob().
Your service definition might look something like this:
<bean id="myService" class="com.mydomain.MyService">
<property name="application" ref="web.handler"/>
</bean>
<bean id="web.handler" class="com.mydomain.ApplicationAdapter">
...
</bean>
You'll need to add the instance variable for your adapter subclass as
well as the setter as mandated by Spring.
Carl
On Nov 27, 2007 10:34 AM, Art Clarke <aclarke at vlideshow.com> wrote:
>
>
>
>
> Hi folks,
>
>
>
> Stupid question #2: Any recommendations on how to set up a IScheduledJob in
> a Red5 service (i.e. not an ApplicationAdapter)?
>
>
>
> What I'm trying to do is set up a job that runs every second, checks all
> events my service has generated, and then sends them off to any flash
> clients who had previously indicated interest.
>
>
>
> My Red5 service class doesn't have access (as far as I can tell) to the
> ApplicationAdapter object, and so I can't grab it's implementation of
> ISchedulingService to use (for example:
>
>
>
> app.addScheduledJob(1000, myIScheduledJobObject);
>
>
>
> )
>
>
>
> I'd rather not implement my own scheduling… I'm sure there is a simple
> either Red5 or Spring method that I just don't know.
>
>
>
> Thanks in advance,
>
>
>
> - Art
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
More information about the Red5
mailing list