GeeCON Prague 2014*
The moose likes Groovy and the fly likes Long polling in Griffon app & branching grails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » Groovy
Bookmark "Long polling in Griffon app & branching grails" Watch "Long polling in Griffon app & branching grails" New topic
Author

Long polling in Griffon app & branching grails

andrew ennamorato
Ranch Hand

Joined: Oct 03, 2007
Posts: 100
Two questions way off from each other, but oh well.

The last one first - at SpringOne, Graeme mentioned they were thinking about "splitting" some of Grails off, because other frameworks (like Griffon) were using certain pieces and this would be easier if to support if parts of it were seperated from the web specific code. Any progress or discussions the Grails/Griffon teams have had in this regard?

Second, I an thinking about using Griffon as a PubSubHubbub/Atom client. The trick with that spec is supporting POSTs from servers. So, is it possible to embed an http server w/in a Griffon app & if so is that a terrible idea (I lean towards yes). If I go the route of long polling/webhooks, am I going to run into any threading issues (locking the GUI while I wait for server responses) and am I better off in doing that in an applet/webstart app?

Sorry for the long questions...I'm really looking forward to doing a Griffon app though because It just makes it look so much easier than traditional desktop app development.
Andres Almiray
author
Ranch Hand

Joined: Jan 25, 2010
Posts: 47

andrew ennamorato wrote:At SpringOne, Graeme mentioned they were thinking about "splitting" some of Grails off, because other frameworks (like Griffon) were using certain pieces and this would be easier if to support if parts of it were seperated from the web specific code. Any progress or discussions the Grails/Griffon teams have had in this regard?


While we (the Griffon team) certainly look forward to a better collaboration with our big brother Grails there have been no further news on this front yet.

andrew ennamorato wrote:Second, I an thinking about using Griffon as a PubSubHubbub/Atom client. The trick with that spec is supporting POSTs from servers. So, is it possible to embed an http server w/in a Griffon app & if so is that a terrible idea (I lean towards yes). If I go the route of long polling/webhooks, am I going to run into any threading issues (locking the GUI while I wait for server responses) and am I better off in doing that in an applet/webstart app?


I have little to no knowledge on PubSubHubbub/Atom, it sounds like a server can push data to a client doing a POST, is that correct? You can certainly embed a web server into a Griffon application if needed, most likely by building a plugin around Jetty or Tomcat. If you build such a plugin let us know :-) so that it can be added to the growing list of plugins.

Cheers,
Andres
andrew ennamorato
Ranch Hand

Joined: Oct 03, 2007
Posts: 100
Andres,

Thanks for the reply.

Will be interesting to see if Grails can splice off the pieces that you use in Griffon...might be cleaner for all involved?

You're correct about PubSub...basically just doing POSTs all over the place. Interesting idea about plugging in Jetty, if I try it I will definitely let you know!

andy
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Long polling in Griffon app & branching grails