On Apr 8, 8:03 pm, "Dhanji R. Prasanna" <dha...@gmail.com> wrote:> <scotthernan...@gmail.com>wrote:
> It should work, have you noticed any problems?
>
> On Thu, Apr 9, 2009 at 12:39 PM, Scott Hernandez
>
>
>
> > Is there any support on GAE now that java is supported? If so, are
> > there caveats or concerns while running under GAE? If not, why; is
> > there another DI framework in play?
>
> > Thanks in advance,
> > Scott
Ouch. Sorta hinders applications that burst/multiplex backend services
or that use schedulers. Wonder if they'll provide a thread pool at
some point.
-bp
2009/4/10 Brian Pontarelli <br...@pontarelli.com>Ouch. Sorta hinders applications that burst/multiplex backend services
> yes the Google App Engine has a strict security manager - it also
> doesn't allow you to create threads
or that use schedulers. Wonder if they'll provide a thread pool at
some point.
yep - though there is a basic "cron" scheduler service:
http://code.google.com/appengine/docs/java/config/cron.html
also, requests have a time limit of 30s - after that they get zapped
http://code.google.com/appengine/docs/java/runtime.html
yes, but the main problem about the cron, is that it executes a URL,
so you have only 30 seconds to do something, at least if they
implemented the same restriction to "cron requests". Does anyone know
something about it?
Seems like you can just setup a re-entrant task where when it gets
close to 30 seconds (or a good place to pause) it calls out to another
app (by url) that immediately calls back (to a place you can even
specify on the request) with all the info needed to start back up and
continue processing. Then you just have your task ping this restart/
resume service, and magically you get a request with where to start
back up. Keep doing this as long as you need to do work.
Using cron to start these processes seems straight forward enough, and
they can go one as long as you want by simpling ping'n yourself
(essentially) continously.
2009/4/10 Scott Hernandez <scotthe...@gmail.com>
Seems like you can just setup a re-entrant task where when it gets
close to 30 seconds (or a good place to pause) it calls out to another
app (by url) that immediately calls back (to a place you can even
specify on the request) with all the info needed to start back up and
continue processing. Then you just have your task ping this restart/
resume service, and magically you get a request with where to start
back up. Keep doing this as long as you need to do work.
Using cron to start these processes seems straight forward enough, and
they can go one as long as you want by simpling ping'n yourself
(essentially) continously.
interesting idea... I wonder how easy it would be to create a continuations framework on top of the GAE scheduler?
Has anyone tried guice-servlet (http://code.google.com/p/google-guice/
wiki/Servlets) or warp-servlet (www.wideplay.com/warp::servlet )?