Is there a way to upload database contents to Google App Engine for Java, like the bulkuploader script in the Python version? If not, how would you get existing data into your GAE/J app?
+2
A:
As far as I know, the only two options available are:
As you have noted, both are python oriented. I have not seen a similar equivalent for GAE/J.
jsight
2009-04-20 22:13:24
+6
A:
You can use the Python uploaders to upload data for your Java app. First, create an app.yaml in an empty directory that contains the following:
application: yourappid
version: upload
runtime: python
api_version: 1
handlers:
- url: /remote_api
script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
login: admin
Then, use 'appcfg.py update .' in that directory. Now you can use the 'bulkloader.py' bulk load tool, pointing it at upload.latest.yourappid.appspot.com. Since multiple major versions can run simultaneously, and all versions of an app share the same datastore, you can use the Python bulk uploader while still running your app in Java.
Nick Johnson
2009-04-21 09:31:50