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 :
new Timer().schedule(new TimerTask(){
@Override
public void run() {
try {
Thread.sleep(30000);
} catch (InterruptedException e) {
e.printStackTrace();
}
result = updateFeeds();
}
}, 30000,Long.MAX_VALUE);
When I run the application and when I get :
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List org.joke.planet.client.FeedService.loadFeeds()' threw an unexpected exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at the first line or pasted code.
My Question is HOW I can make a background worker that works in GWT+AppEngine Service ?