[Red5] SharedObject sendMessage

Patrice FERLET metal3d at gmail.com
Mon Feb 18 07:59:13 PST 2008


Sorry i didn't see your question. This configuration is in the red5.xml at
toplevel of your application.

2008/2/18, Patrice FERLET <metal3d at gmail.com>:
>
> Is it normal that you have 2 dots in this name ?
> myso.instance.users..soservice
>
> Maybe you could check if your configuration is bad:
> myso.instance.users.soservice
>
> 2008/2/18, África Romero <lista.red5 at gmail.com>:
> >
> >
> > 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.
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
>
>
> --
> Blog: http://www.metal3d.org
> Copix: http://www.copix.org
>



-- 
Blog: http://www.metal3d.org
Copix: http://www.copix.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080218/084880c3/attachment.html 


More information about the Red5 mailing list