Hi, i need to connect my development environment to google appengine
datastore. Im currently using PlayFramework 1.2.5 with GAE module and
Siena Module.
Im running this job onStartup, but even it seems it connects ok, it's
still reading data from local storage.
@OnApplicationStart(async=false)
public class Boot extends Job{
@Override
public void doJob() throws Exception {
RemoteApiOptions options = new RemoteApiOptions()
.server("
na-engage-test.appspot.com", 443).credentials(
"
devel...@domain.com.ar", "password");
RemoteApiInstaller installer = new RemoteApiInstaller();
installer.install(options);
}
}
This is my controller
public static void users() throws IOException {
List<Object> fetch = UserProfileDTO.all().limit(10).fetch();
renderJSON(fetch);
}
And this is my class
public class UserProfileDTO extends EnhancedModel {
@Id
public String userID;
public Long dateCreatedLong = 0l;
public String userEmail;
}
This is my webserver's log.
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.5,
http://www.playframework.org
~
~ Ctrl+C to stop
~
CompilerOracle: exclude jregex/Pretokenizer.next
Listening for transport dt_socket at address: 8000
16:00:37,340 INFO ~ Starting D:\Desarrollo\workspace
\GoogleEngageOfficePlay
16:00:37,346 INFO ~ Module gae is available (D:\Desarrollo\play
\modules\gae-1.6.0)
16:00:37,347 INFO ~ Module siena is available (D:\Desarrollo\workspace
\GoogleEngageOfficePlay\modules\siena-2.0.7)
16:00:38,100 WARN ~
16:00:38,100 WARN ~ Google App Engine module
16:00:38,101 WARN ~ ~~~~~~~~~~~~~~~~~~~~~~~
16:00:38,102 WARN ~ No Google App Engine environment found. Setting
up a development environement
16:00:38,134 WARN ~
16:00:38,135 WARN ~ You're running Play! in DEV mode
16:00:38,256 INFO ~ Listening for HTTP on port 9000 (Waiting a first
request to start) ...
16:00:47,181 INFO ~ GAE environment detected
16:00:47,227 INFO ~ Application 'GoogleEngageOfficePlay' is now
started !
16:00:47,652 INFO ~ Local Datastore initialized:
Type: Master/Slave
Storage: D:\Desarrollo\workspace\GoogleEngageOfficePlay\tmp
\datastore
16:00:47,653 INFO ~ The backing store, D:\Desarrollo\workspace
\GoogleEngageOfficePlay\tmp\datastore, does not exist. It will be
created.
Any ideas why it doesnt connect to appengine remote datastore?