Have you added appengine-testing-1.3.6.jar and appengine-api-
stubs-1.3.6.jar to your project?
On 18 Aug 2010, at 19:50, luka wrote:
Hi John,
The project
http://code.google.com/p/remote-datastore/
No longer compiles, since Google newest SDK removed the following
classes/interfaces:
com.google.appengine.tools.development.ApiProxyLocalFactory
com.google.appengine.tools.development.LocalServerEnvironment
Can you workaround that ?
What older SDK supports this project ?
Thanks
Uri
On Jul 5, 12:32 am, John Patterson <[email protected]> wrote:
I have had success uploading data in bulk from Java using this
RemoteDatastore code:
http://code.google.com/p/remote-datastore/
It is very easy to use and because it operates at the binary protocol
buffer level it is very fast
Here is an example of using it to upload data:
public class UploadData
{
public static void main(String[] args)
{
// only call install once - often in a static initializer
RemoteDatastore.install();
// tell remote datastore where to connect
RemoteDatastore.divert("http://myVersion.latest.myApp.appspot.com/remote-datastore
", "myApp", "myVersion");
// use standard datastore API to get a datastore service
instance
DatastoreService service =
DatastoreServiceFactory.getDatastoreService();
// create some entities
Entity entity1 = new Entity("myKindName");
entity1.setProperty("property1", "hello");
Entity entity2 = new Entity("myKindName");
entity2.setProperty("property1", "there");
// sends the data over http to your remote servlet and stores it
in the live datastore
datastore.put(Arrays.asList(entity1, entity2);
}
}
--
You received this message because you are subscribed to the Google
Groups "Google App Engine for Java" group.
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
.
--
You received this message because you are subscribed to the Google Groups "Google
App Engine for Java" group.
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.