You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Hazem Saleh <ha...@apache.org> on 2008/11/18 12:48:47 UTC

[OT] GMaps4JSF with Ajax PUSH

Hello,

Me and (Alexander Smirnov) published an article on TSS about GMaps4JSF with
Ajax PUSH:
http://www.theserverside.com/tt/articles/article.tss?l=GMaps4JSFwithAjaxPUSH

We hope it can be interesting!
-- 
Hazem Ahmed Saleh Ahmed

Author of (The Definitive Guide to Apache MyFaces and Facelets):
http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370

Web blog: http://www.jroller.com/page/HazemBlog

[Web 2.0] Google Maps Integration with JSF:
http://code.google.com/p/gmaps4jsf/
http://www.theserverside.com/news/thread.tss?thread_id=51250

Re: [OT] GMaps4JSF with Ajax PUSH

Posted by Hazem Saleh <ha...@apache.org>.
Yes Matzew, This is a real drawback of this sort of push implementation.
One of (Alexander) 's TODOs is to implement this component using JMS.
BTW, ICEFaces implements PUSH using JMS.

On Tue, Nov 18, 2008 at 2:18 PM, Matthias Wessendorf <ma...@apache.org>wrote:

> On Tue, Nov 18, 2008 at 1:11 PM, Aerial Bear <ae...@gmail.com> wrote:
> > Right, but its still a poll in the sense that the client is issuing a new
> > request to the server each time, right?
>
> yep, that's what the doc says. I read on it.
> "lightweight" does mean no complete jsf component tree.
> Well, JSF 1.2 and invokeOnComponent could fix that...
>
> >
> > The real issue here is scaling. With polling each client using the page
> > sends a new request (assuming I understand this correctly) each time the
> > page gets updated. The number of requests grows in direct proportion to
> the
> > number of clients.
>
> +1
> also all the empty response, when no change occurred on the back end.
> The more you poll, the worse the performance (client and server). See:
>
> http://matthiaswessendorf.wordpress.com/2008/10/03/sorta-real-time-updates-with-trinidad/
>
> and the follow up links.
>
> -Matthias
>
> >
> > Push techniques on the other hand, manage data updates by grouping them.
> As
> > a result, server load grows more slowly than in polling. Does Ajax4jsf do
> > this?
> >
> > Thanks,
> > jim
> >
> > On Tue, Nov 18, 2008 at 7:00 AM, Hazem Saleh <ha...@apache.org> wrote:
> >>
> >> no it is not a normal poll, it is a lightweight one.
> >>
> >> On Tue, Nov 18, 2008 at 1:58 PM, Matthias Wessendorf <matzew@apache.org
> >
> >> wrote:
> >>>
> >>> isn't that a poll, than a push ?
> >>>
> >>> -M
> >>>
> >>> On Tue, Nov 18, 2008 at 12:48 PM, Hazem Saleh <ha...@apache.org>
> wrote:
> >>> > Hello,
> >>> >
> >>> > Me and (Alexander Smirnov) published an article on TSS about
> GMaps4JSF
> >>> > with
> >>> > Ajax PUSH:
> >>> >
> >>> >
> http://www.theserverside.com/tt/articles/article.tss?l=GMaps4JSFwithAjaxPUSH
> >>> >
> >>> > We hope it can be interesting!
> >>> > --
> >>> > Hazem Ahmed Saleh Ahmed
> >>> >
> >>> > Author of (The Definitive Guide to Apache MyFaces and Facelets):
> >>> >
> >>> >
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
> >>> >
> >>> > Web blog: http://www.jroller.com/page/HazemBlog
> >>> >
> >>> > [Web 2.0] Google Maps Integration with JSF:
> >>> > http://code.google.com/p/gmaps4jsf/
> >>> > http://www.theserverside.com/news/thread.tss?thread_id=51250
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Matthias Wessendorf
> >>>
> >>> blog: http://matthiaswessendorf.wordpress.com/
> >>> sessions: http://www.slideshare.net/mwessendorf
> >>> twitter: http://twitter.com/mwessendorf
> >>
> >>
> >>
> >> --
> >> Hazem Ahmed Saleh Ahmed
> >>
> >> Author of (The Definitive Guide to Apache MyFaces and Facelets):
> >>
> >>
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
> >>
> >> Web blog: http://www.jroller.com/page/HazemBlog
> >>
> >> [Web 2.0] Google Maps Integration with JSF:
> >> http://code.google.com/p/gmaps4jsf/
> >> http://www.theserverside.com/news/thread.tss?thread_id=51250
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
>



-- 
Hazem Ahmed Saleh Ahmed

Author of (The Definitive Guide to Apache MyFaces and Facelets):
http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370

Web blog: http://www.jroller.com/page/HazemBlog

[Web 2.0] Google Maps Integration with JSF:
http://code.google.com/p/gmaps4jsf/
http://www.theserverside.com/news/thread.tss?thread_id=51250

Re: [OT] GMaps4JSF with Ajax PUSH

Posted by Matthias Wessendorf <ma...@apache.org>.
On Tue, Nov 18, 2008 at 1:11 PM, Aerial Bear <ae...@gmail.com> wrote:
> Right, but its still a poll in the sense that the client is issuing a new
> request to the server each time, right?

yep, that's what the doc says. I read on it.
"lightweight" does mean no complete jsf component tree.
Well, JSF 1.2 and invokeOnComponent could fix that...

>
> The real issue here is scaling. With polling each client using the page
> sends a new request (assuming I understand this correctly) each time the
> page gets updated. The number of requests grows in direct proportion to the
> number of clients.

+1
also all the empty response, when no change occurred on the back end.
The more you poll, the worse the performance (client and server). See:
http://matthiaswessendorf.wordpress.com/2008/10/03/sorta-real-time-updates-with-trinidad/

and the follow up links.

-Matthias

>
> Push techniques on the other hand, manage data updates by grouping them. As
> a result, server load grows more slowly than in polling. Does Ajax4jsf do
> this?
>
> Thanks,
> jim
>
> On Tue, Nov 18, 2008 at 7:00 AM, Hazem Saleh <ha...@apache.org> wrote:
>>
>> no it is not a normal poll, it is a lightweight one.
>>
>> On Tue, Nov 18, 2008 at 1:58 PM, Matthias Wessendorf <ma...@apache.org>
>> wrote:
>>>
>>> isn't that a poll, than a push ?
>>>
>>> -M
>>>
>>> On Tue, Nov 18, 2008 at 12:48 PM, Hazem Saleh <ha...@apache.org> wrote:
>>> > Hello,
>>> >
>>> > Me and (Alexander Smirnov) published an article on TSS about GMaps4JSF
>>> > with
>>> > Ajax PUSH:
>>> >
>>> > http://www.theserverside.com/tt/articles/article.tss?l=GMaps4JSFwithAjaxPUSH
>>> >
>>> > We hope it can be interesting!
>>> > --
>>> > Hazem Ahmed Saleh Ahmed
>>> >
>>> > Author of (The Definitive Guide to Apache MyFaces and Facelets):
>>> >
>>> > http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>>> >
>>> > Web blog: http://www.jroller.com/page/HazemBlog
>>> >
>>> > [Web 2.0] Google Maps Integration with JSF:
>>> > http://code.google.com/p/gmaps4jsf/
>>> > http://www.theserverside.com/news/thread.tss?thread_id=51250
>>> >
>>>
>>>
>>>
>>> --
>>> Matthias Wessendorf
>>>
>>> blog: http://matthiaswessendorf.wordpress.com/
>>> sessions: http://www.slideshare.net/mwessendorf
>>> twitter: http://twitter.com/mwessendorf
>>
>>
>>
>> --
>> Hazem Ahmed Saleh Ahmed
>>
>> Author of (The Definitive Guide to Apache MyFaces and Facelets):
>>
>> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>>
>> Web blog: http://www.jroller.com/page/HazemBlog
>>
>> [Web 2.0] Google Maps Integration with JSF:
>> http://code.google.com/p/gmaps4jsf/
>> http://www.theserverside.com/news/thread.tss?thread_id=51250
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Re: [OT] GMaps4JSF with Ajax PUSH

Posted by Aerial Bear <ae...@gmail.com>.
Right, but its still a poll in the sense that the client is issuing a new
request to the server each time, right?

The real issue here is scaling. With polling each client using the page
sends a new request (assuming I understand this correctly) each time the
page gets updated. The number of requests grows in direct proportion to the
number of clients.

Push techniques on the other hand, manage data updates by grouping them. As
a result, server load grows more slowly than in polling. Does Ajax4jsf do
this?

Thanks,
jim

On Tue, Nov 18, 2008 at 7:00 AM, Hazem Saleh <ha...@apache.org> wrote:

> no it is not a normal poll, it is a lightweight one.
>
>
> On Tue, Nov 18, 2008 at 1:58 PM, Matthias Wessendorf <ma...@apache.org>wrote:
>
>> isn't that a poll, than a push ?
>>
>> -M
>>
>> On Tue, Nov 18, 2008 at 12:48 PM, Hazem Saleh <ha...@apache.org> wrote:
>> > Hello,
>> >
>> > Me and (Alexander Smirnov) published an article on TSS about GMaps4JSF
>> with
>> > Ajax PUSH:
>> >
>> http://www.theserverside.com/tt/articles/article.tss?l=GMaps4JSFwithAjaxPUSH
>> >
>> > We hope it can be interesting!
>> > --
>> > Hazem Ahmed Saleh Ahmed
>> >
>> > Author of (The Definitive Guide to Apache MyFaces and Facelets):
>> >
>> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>> >
>> > Web blog: http://www.jroller.com/page/HazemBlog
>> >
>> > [Web 2.0] Google Maps Integration with JSF:
>> > http://code.google.com/p/gmaps4jsf/
>> > http://www.theserverside.com/news/thread.tss?thread_id=51250
>> >
>>
>>
>>
>> --
>> Matthias Wessendorf
>>
>> blog: http://matthiaswessendorf.wordpress.com/
>> sessions: http://www.slideshare.net/mwessendorf
>> twitter: http://twitter.com/mwessendorf
>>
>
>
>
> --
> Hazem Ahmed Saleh Ahmed
>
> Author of (The Definitive Guide to Apache MyFaces and Facelets):
>
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>
> Web blog: http://www.jroller.com/page/HazemBlog
>
> [Web 2.0] Google Maps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
> http://www.theserverside.com/news/thread.tss?thread_id=51250
>

Re: [OT] GMaps4JSF with Ajax PUSH

Posted by Cagatay Civici <ca...@gmail.com>.
What is a lightweight poll?

On Tue, Nov 18, 2008 at 12:00 PM, Hazem Saleh <ha...@apache.org> wrote:

> no it is not a normal poll, it is a lightweight one.
>
>
> On Tue, Nov 18, 2008 at 1:58 PM, Matthias Wessendorf <ma...@apache.org>wrote:
>
>> isn't that a poll, than a push ?
>>
>> -M
>>
>> On Tue, Nov 18, 2008 at 12:48 PM, Hazem Saleh <ha...@apache.org> wrote:
>> > Hello,
>> >
>> > Me and (Alexander Smirnov) published an article on TSS about GMaps4JSF
>> with
>> > Ajax PUSH:
>> >
>> http://www.theserverside.com/tt/articles/article.tss?l=GMaps4JSFwithAjaxPUSH
>> >
>> > We hope it can be interesting!
>> > --
>> > Hazem Ahmed Saleh Ahmed
>> >
>> > Author of (The Definitive Guide to Apache MyFaces and Facelets):
>> >
>> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>> >
>> > Web blog: http://www.jroller.com/page/HazemBlog
>> >
>> > [Web 2.0] Google Maps Integration with JSF:
>> > http://code.google.com/p/gmaps4jsf/
>> > http://www.theserverside.com/news/thread.tss?thread_id=51250
>> >
>>
>>
>>
>> --
>> Matthias Wessendorf
>>
>> blog: http://matthiaswessendorf.wordpress.com/
>> sessions: http://www.slideshare.net/mwessendorf
>> twitter: http://twitter.com/mwessendorf
>>
>
>
>
> --
> Hazem Ahmed Saleh Ahmed
>
> Author of (The Definitive Guide to Apache MyFaces and Facelets):
>
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>
> Web blog: http://www.jroller.com/page/HazemBlog
>
> [Web 2.0] Google Maps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
> http://www.theserverside.com/news/thread.tss?thread_id=51250
>

Re: [OT] GMaps4JSF with Ajax PUSH

Posted by Hazem Saleh <ha...@apache.org>.
no it is not a normal poll, it is a lightweight one.

On Tue, Nov 18, 2008 at 1:58 PM, Matthias Wessendorf <ma...@apache.org>wrote:

> isn't that a poll, than a push ?
>
> -M
>
> On Tue, Nov 18, 2008 at 12:48 PM, Hazem Saleh <ha...@apache.org> wrote:
> > Hello,
> >
> > Me and (Alexander Smirnov) published an article on TSS about GMaps4JSF
> with
> > Ajax PUSH:
> >
> http://www.theserverside.com/tt/articles/article.tss?l=GMaps4JSFwithAjaxPUSH
> >
> > We hope it can be interesting!
> > --
> > Hazem Ahmed Saleh Ahmed
> >
> > Author of (The Definitive Guide to Apache MyFaces and Facelets):
> >
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
> >
> > Web blog: http://www.jroller.com/page/HazemBlog
> >
> > [Web 2.0] Google Maps Integration with JSF:
> > http://code.google.com/p/gmaps4jsf/
> > http://www.theserverside.com/news/thread.tss?thread_id=51250
> >
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
>



-- 
Hazem Ahmed Saleh Ahmed

Author of (The Definitive Guide to Apache MyFaces and Facelets):
http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370

Web blog: http://www.jroller.com/page/HazemBlog

[Web 2.0] Google Maps Integration with JSF:
http://code.google.com/p/gmaps4jsf/
http://www.theserverside.com/news/thread.tss?thread_id=51250

Re: [OT] GMaps4JSF with Ajax PUSH

Posted by Matthias Wessendorf <ma...@apache.org>.
isn't that a poll, than a push ?

-M

On Tue, Nov 18, 2008 at 12:48 PM, Hazem Saleh <ha...@apache.org> wrote:
> Hello,
>
> Me and (Alexander Smirnov) published an article on TSS about GMaps4JSF with
> Ajax PUSH:
> http://www.theserverside.com/tt/articles/article.tss?l=GMaps4JSFwithAjaxPUSH
>
> We hope it can be interesting!
> --
> Hazem Ahmed Saleh Ahmed
>
> Author of (The Definitive Guide to Apache MyFaces and Facelets):
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>
> Web blog: http://www.jroller.com/page/HazemBlog
>
> [Web 2.0] Google Maps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
> http://www.theserverside.com/news/thread.tss?thread_id=51250
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf