I'm trying to use Google App Engine Remote API to connect to production datastore from my dev server. It seems like the first request is successful, and I do connect to the production datastore, but on subsequent requests it doesn't connect properly, and I'm getting this message:
remote API is already installed
This is the code I use to connect to Remote API:
try {
RemoteApiOptions options = new RemoteApiOptions()
.server("xxxxx.appspot.com", 80)
.useServiceAccountCredential("xxxxx@appspot.gserviceaccount.com",
"WEB-INF/xxxxxx-xxxxxx.p12");
RemoteApiInstaller installer = new RemoteApiInstaller();
installer.install(options);
} catch (Exception e) {
System.out.println(e.getMessage());
}
Not sure if it's relevant, but I use objectify to interact with the datastore