I am running into a similar issue. I am using Memcache as the data store. To
simulate access by different clients, I am using multiple threads that
access the same memcache. However, thread A is not seeing the data put by
thread B. I tried using ApiProxy.setEnvironmentForCurrentThread with a test
environment, but that didn't help.
Please help!
Inder
Here is how my Test Environment looks like:
Environment testEnvironment = new Environment() {
@Override
public String getAppId() {
return "test";
}
@Override
public Map<String, Object> getAttributes() {
// TODO Auto-generated method stub
return Maps.newHashMap();
}
@Override
public String getAuthDomain() {
return "authDomain";
}
@Override
public String getEmail() {
return "[email protected]";
}
@Override
public String getRequestNamespace() {
return "test";
}
@Override
public String getVersionId() {
return "1";
}
@Override
public boolean isAdmin() {
return false;
}
@Override
public boolean isLoggedIn() {
return false;
}
};
ApiProxy.setEnvironmentForCurrentThread(testEnvironment);
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine-java/-/ABpx4PjpE2EJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.