well, that's no more a technical question ;)

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2012/12/17 Howard W. Smith, Jr. <smithh032...@gmail.com>:
> Well, I had that when my app was running via GlassFish. I still have that
> code ready to use but websockets and tomee getting it all done for me,
> quite nicely. :-)
>  On Dec 17, 2012 2:59 AM, "Romain Manni-Bucau" <rmannibu...@gmail.com>
> wrote:
>
>> Yes and no, it makes the connection being from the client why is better for
>> it and it works - when websockets can have issues with proxies and so on.
>> Websocket are nice when you have a real protocol...just create one and ask
>> the client to ask for an update with a timer, that's already better and you
>> keep the full connected advantages
>> Le 17 déc. 2012 08:54, "Howard W. Smith, Jr." <smithh032...@gmail.com> a
>> écrit :
>>
>> > Polling is too much network traffic in my opinion. Websocket is instant
>> > messaging. No need to add polling code and xhtml here there for different
>> > type of messages coming from server and no need of an ajax request to
>> > server throughout entire session just to get an update from the server.
>> >  On Dec 17, 2012 2:47 AM, "Romain Manni-Bucau" <rmannibu...@gmail.com>
>> > wrote:
>> >
>> > > Side note: if your need is pushing regularly to the client just having
>> > some
>> > > client polling can make it far easier to manage on both sides...
>> > > Le 17 déc. 2012 08:33, "Howard W. Smith, Jr." <smithh032...@gmail.com>
>> a
>> > > écrit :
>> > >
>> > > > Almost forgot...PrimeFaces peer/friend of mine informed me that JMS
>> is
>> > > good
>> > > > for running two instances of an app, similar to load balancer.
>> > > >
>> > > > Prior to using TomEE, I really wanted to use PrimeFaces Push (powered
>> > by
>> > > > Atmosphere/websocket), and at that time, I was thinking that I could
>> > > > possibly run Tomcat or TomEE just to push messages to the clients of
>> my
>> > > app
>> > > > running on Glassfish, since Glassfish had issues with PrimeFaces Push
>> > > > (Atmosphere). I think he said that tomEE and Glassfish could do that,
>> > but
>> > > > they would have to communicate via JMS or the two servlets would have
>> > to
>> > > > serve requests/responses, appropriately, via JMS.
>> > > >
>> > > > I am probably not stating the above correctly as he said, but that's
>> > how
>> > > I
>> > > > understood what he told me.
>> > > >
>> > > > Now that I'm only using tomEE, there is no need to do such a thing.
>> > > Loving
>> > > > TomEE!!!
>> > > >
>> > > >
>> > > >
>> > > > On Mon, Dec 17, 2012 at 2:26 AM, Howard W. Smith, Jr. <
>> > > > smithh032...@gmail.com> wrote:
>> > > >
>> > > > > Very interesting discussion and responses here! Anthony motivates
>> me
>> > to
>> > > > > jump on the bandwagon of using JMS/message-driven-beans, and at the
>> > > same
>> > > > > time, Romain tells me, not much need (for local) in a Java EE 6
>> > > > > application. :)
>> > > > >
>> > > > > Either way, i have not ruled out JMS. I have done some strategic
>> > coding
>> > > > on
>> > > > > my part to avoid @Schedule or use of timer service...using Date
>> class
>> > > to
>> > > > > postpone pushing data to google calendar, and only pushing when
>> there
>> > > is
>> > > > a
>> > > > > new date to update...application-wide. At first, i was pushing data
>> > to
>> > > > > google calendar after 'every' update request... sending over 1,000
>> > > > requests
>> > > > > to google calendar sometimes or daily (adding and deleting events
>> on
>> > > > google
>> > > > > calendar to keep google calendar in sync with the database), but I
>> > cut
>> > > > that
>> > > > > back (or decreased the # of requests) with the new code I developed
>> > 2+
>> > > > > months ago. just makes for a faster user experience since they
>> > > requested
>> > > > to
>> > > > > have data updated via ajax on change/selection of this field, and
>> > that
>> > > > > field.
>> > > > >
>> > > > > Right now, JMS would be similar to a nice science project for me...
>> > > just
>> > > > > to see if I can do it and the success of it.
>> > > > >
>> > > > >
>> > > > > On Mon, Dec 17, 2012 at 1:57 AM, Romain Manni-Bucau <
>> > > > rmannibu...@gmail.com
>> > > > > > wrote:
>> > > > >
>> > > > >> I used it a lot in javaee 5 (openejb 3) but i'm happy to leave it
>> on
>> > > the
>> > > > >> road qince javaee 6, no more.
>> > > > >>
>> > > > >> It works but i dont find it effective when it stays local
>> > > > >>
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>>

Reply via email to