Do you mean trigger a different method handler using a shared object change?
What is the service?
If you mean a service handler, according to Joachim's migration guide (
http://www.joachim-bauch.de/tutorials/red5/MigrationGuide.txt#sharedobject-event-handlers),
the syntax for that I guess would be:

        //set to false to indicate that this is a non-persistent Shared
Object
        this.createSharedObject(this.appScope, "messageSO", false);
        //get the SO just created...
        ISharedObject TSO = this.getSharedObject(this.appScope,
"messageSO", false);
        //register a handler for the TSO...
        TSO.registerServiceHandler("TSOHandler", new SOHandler());

The SOHandler() would look something like this:

     class SOHandler {
     public void myMethod(String arg1) {
        // Now do something
       }
    }

So to call handler from flash client:
remote_so.send(<handler>, <args>);

where remote_so is the messageSO transient shared object you have created
above.

--
C is forever.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to