[ http://jira.magnolia.info/browse/MAGNOLIA-1214?page=comments#action_13054 
] 
            
CAPITAINE Harold commented on MAGNOLIA-1214:
--------------------------------------------

Hi Sameer,

I've read the ICE specification 2.0, and it seems to be a good way to build the 
asynchronous communication system. 

So I've searched on internet and I've found only one implementation for the 
specification of ICE 2.0 called TwICE.
Look at this adress to know more about this:
http://twice.sourceforge.net/

Do you know another implementations? because TwICE is not really well 
documented but it seems to be really powerful.

Regards,

CAPITAINE Harold


> Activation only goes to 1 subscriber
> ------------------------------------
>
>                 Key: MAGNOLIA-1214
>                 URL: http://jira.magnolia.info/browse/MAGNOLIA-1214
>             Project: Magnolia
>          Issue Type: Bug
>          Components: activation
>    Affects Versions: 3.0 RC4
>         Environment: tomcat 5 on Windows XP Pro.
>            Reporter: Art Peel
>         Assigned To: Sameer Charles
>         Attachments: SimpleSyndicator.java.patch
>
>
> Through the config page, make sure there are two or more subscribers.
> Add a new page to the website and activate it.
> The new page will be sent to only 1 of the subscribers because 
> SimpleSyndicator only asks for 1.
> Here is a patch for that:
> Index: SimpleSyndicator.java
> ===================================================================
> --- SimpleSyndicator.java     (revision 7481)
> +++ SimpleSyndicator.java     (working copy)
> @@ -20,6 +20,7 @@
>  import java.net.URL;
>  import java.net.URLConnection;
>  import java.io.*;
> +import java.util.Enumeration;
>  
>  import org.apache.commons.lang.StringUtils;
>  import org.slf4j.Logger;
> @@ -47,9 +48,12 @@
>       * @throws ExchangeException
>       */
>      public synchronized void activate(ActivationContent activationContent) 
> throws ExchangeException {
> -        Subscriber si = Subscriber.getSubscriber();
> -        if (si.isActive()) {
> -            activate(si, activationContent);
> +        Enumeration subscribers = Subscriber.getList();
> +        while(subscribers.hasMoreElements()) {
> +          Subscriber si = (Subscriber)subscribers.nextElement();
> +          if (si.isActive()) {
> +              activate(si, activationContent);
> +          }
>          }
>      }
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to