[Red5] SharedObject sendMessage

África Romero lista.red5 at gmail.com
Mon Feb 18 07:46:00 PST 2008


Hi all,

How can I use the method sendMessage of SharedObjects to invoke a method
in all users connected to a shared object???

My code works fine with previous version of red5, but now I obtain an error.

My code........................................

    public ISharedObject getSharedObject(IScope scope, String name, boolean
persist) {

        ISharedObjectService service = (ISharedObjectService)
ScopeUtils.getScopeService(
                scope, ISharedObjectService.class, SharedObjectService.class
,
                false);

        return service.getSharedObject(scope, name, persist);
    }


     ...........
     ISharedObject so = getSharedObject(scope, getSoName(), false);
     ClientDTO clientDTO = (ClientDTO)client.getAttribute("dto");

     //Se envia mi cliente a todos por broadcast de so.
     List params = new ArrayList();
     params.add(clientDTO.asMap());
     so.sendMessage("addParticipant", params);


My error..............................................................

INFO 15:55:55,922 [pool-3-thread-3] <391 Context.getBean>: Bean lookup
failed for myso.instance.users..soservice in the application context
DEBUG 15:55:55,922 [pool-3-thread-3] <393 Context.getBean>:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'FCPeopleList.instance.users..soservice' is defined

* where myso.instance.users is the name of my shared object
* and ..soservice shows that a serviceName is missing, but I dont know how
to configure this.


Thanks in advance.
Africa.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080218/4007e30d/attachment-0001.html 


More information about the Red5 mailing list