[Red5] how can i edit a shared object on the serverside? (java)
Amos Engelking
amos at okova.de
Tue Feb 12 23:58:25 PST 2008
You can use the methods exposed by ISharedObject to manipulate your SO.
The server side code would look something like this:
IConnection conn = Red5.getConnectionLocal();
IScope scope = conn.getScope();
ISharedObject so = app.getSharedObject(scope,"so_name");
so.setAttribute("slot_name",data);
Amos
Daniel Kurdoghlian schrieb:
> hi all and thx for reading!
>
> i have a problem.. im trying to update a shared object on the
> serverside, through a jsp page..
> i am getting the stored data in the file, change the value, and save the
> file..
>
> so my onsync handler on the client should react on this- but it
> doesnt.. - is there any other way,
> to change the so from the server side? any examples would be realy great
>
> i only need to change the value of the so, so the clients know, there is
> a "update" - this is the only reason for the so.
>
> please help me out!
> thx in advance!
> daniel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
More information about the Red5
mailing list