sonam
sonam

Reputation: 21

Running a method for infinitely in google app engine/Gwt

I am having a a method which listens continuously to a stream from a server and writes that data to datastore in google app which is later on retrieved by other methods. How can i do that in google app engine i.e calling that method one time during the starting of app and having it running for unlimited time without affecting other things. I am new to java world,So please help from that point of view also.How's that done in Java?

Upvotes: 2

Views: 174

Answers (1)

Hilbrand Bouwkamp
Hilbrand Bouwkamp

Reputation: 13519

Specific for the google app engine you would use a task. However, on google app engine tasks are limited to 30 seconds execution time or anything that runs on appengine, like a http request. This means you are limited in running long running tasks. See: http://code.google.com/appengine/docs/java/taskqueue/overview.html

Upvotes: 2

Related Questions