[Red5] Custom Scope Objects

Claudius Ceteras claudius at gmx.de
Mon Mar 24 11:32:26 PST 2008


Hi,

> Seems to work for me and my test app...
> 
> I changed the web.scope bean in red5-web.xml to point to my 
> own class org.red5.webapps.simpleApp.RootScope.  This class 
> extends WebScope which is the root scope of every app, and 
> overrides the createChildScope to create my RoomScope objects 
> instead of the standard Scope object.  As a demonstration my 
> RoomScope objects have a public variable r which is 
> initialized to a random int and printed out in 
> Application.java on roomStart and roomDisconnect.

In createChildScope you're doing a subscopeStats.increment(), but
subscopeStats is private.
How can this work? Have you changed the Source of Scope?

regards,

Claudius




More information about the Red5 mailing list