GWT, Google App Engine, TimerTask or Thread in ServiceImpl throw exception

前端 未结 5 1644
星月不相逢
星月不相逢 2021-01-18 07:53

I am using GWT and Google App Engine. I have array of records and I want to update them every 30 mins. In the ServiceImpl I have the fallowing code :



        
5条回答
  •  一整个雨季
    2021-01-18 08:25

    you cannot - a background worker implies a thread, and thread creation in gae does not work.

    The answer to your task is not to create a thread or background worker, but to use this http://code.google.com/appengine/docs/java/config/cron.html

提交回复
热议问题