Accessing the datastore remotely with remote_api

305 views
Skip to first unread message

Benjamin

unread,
Apr 2, 2010, 10:03:22 AM4/2/10
to Google App Engine
It's very important that I solve the task of downloading my data from
an existing production data store and bulk load a modified version. My
App is built in the Java SDK. So far I understand I needed to
download the python SDK in order to use the bulk loader python
scripts. They run just fine on the command line.

It seems that i need to now publish a new version of my app to
production that has the Remote_API available. I need some help
understanding what I need to change. Based on Nick's great blog
posting : http://code.google.com/appengine/articles/remote_api.html I
don't see any problem creating a remote client on my pc - i just need
to understand how to install the remote api on the server side for
java.

How do i configure Remote_API on a java app and how do i set up
security so my client app can access the data store?

Thanks!

Benjamin

unread,
Apr 2, 2010, 11:13:25 AM4/2/10
to Google App Engine
I suppose i'm looking at this thread with a little dismay

http://groups.google.com/group/google-appengine/browse_thread/thread/e26ea1dd8b9a38f9/4924e3f20ed70bd1?lnk=gst&q=java+bulk#4924e3f20ed70bd1

is it true that if i want to download all of my data, massage it, and
re-upload it i need to make a small python app and upload it as a new
version to my production system in order to use the remote api and
bulk upload / download features?

Eli Jones

unread,
Apr 2, 2010, 11:25:09 AM4/2/10
to google-a...@googlegroups.com
Not sure what's so dismaying.

The nice man you mention, Nick Johnson, has a post about exactly what you need to do (use bulkloader against a Java app):



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.


Benjamin

unread,
Apr 2, 2010, 11:35:15 AM4/2/10
to Google App Engine
Eli - thanks! the sky is clearing and the sun is coming out

I understand now that i need to create that little python
"application" to make remote_api available on my java based app

- Ben

On Apr 2, 11:25 am, Eli Jones <eli.jo...@gmail.com> wrote:
> Not sure what's so dismaying.
>
> The nice man you mention, Nick Johnson, has a post about exactly what you
> need to do (use bulkloader against a Java app):
>

> http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loadi...
> <http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loadi...>


>
>
>
> On Fri, Apr 2, 2010 at 11:13 AM, Benjamin <bsaut...@gmail.com> wrote:
> > I suppose i'm looking at this thread with a little dismay
>

> >http://groups.google.com/group/google-appengine/browse_thread/thread/...

> > google-appengi...@googlegroups.com<google-appengine%2Bunsubscrib e...@googlegroups.com>

Nick Johnson (Google)

unread,
Apr 3, 2010, 7:16:46 AM4/3/10
to google-a...@googlegroups.com
That post is actually somewhat out of date, as there's now a native Java remote_api client: http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Setting_Up_remote_api (see the tip in that section for details).

Apologies for being misleading. :)

-Nick Johnson

--
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047

Benjamin

unread,
Apr 8, 2010, 12:06:06 PM4/8/10
to Google App Engine
Nick,

We had touched on this in another thread and the page you posted is
what prompted me to start this new thread. The link you mentioned
above has this tip:

Tip: If you have a Java app, you can use the Python bulkloader.py tool
by installing the Java version of the remote_api handler, which is
included with the Java runtime environment. The handler servlet class
is com.google.apphosting.utils.remoteapi.RemoteApiServlet.

I understand i need to add the java remote api to my server app, and
use the python sdk tools on my desktop to upload and download data.
I'm just confused on how to set up the remote api in my java app. I'm
sorry if i'm being obtuse.

i'm trying to find guidence on install the java remote_api in my app.


On Apr 3, 7:16 am, "Nick Johnson (Google)" <nick.john...@google.com>
wrote:


> That post is actually somewhat out of date, as there's now a native Java

> remote_api client:http://code.google.com/appengine/docs/python/tools/uploadingdata.html...


> the tip in that section for details).
>
> Apologies for being misleading. :)
>
> -Nick Johnson
>
>
>
>
>
> On Fri, Apr 2, 2010 at 4:25 PM, Eli Jones <eli.jo...@gmail.com> wrote:
> > Not sure what's so dismaying.
>
> > The nice man you mention, Nick Johnson, has a post about exactly what you
> > need to do (use bulkloader against a Java app):
>

> >http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loadi...
>
> > <http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loadi...>


>
> > On Fri, Apr 2, 2010 at 11:13 AM, Benjamin <bsaut...@gmail.com> wrote:
>
> >> I suppose i'm looking at this thread with a little dismay
>

> >>http://groups.google.com/group/google-appengine/browse_thread/thread/...

> >> google-appengi...@googlegroups.com<google-appengine%2Bunsubscrib­e...@googlegroups.com>


> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-appengine?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-a...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > google-appengi...@googlegroups.com<google-appengine%2Bunsubscrib­e...@googlegroups.com>


> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
> Registered in Dublin, Ireland, Registration Number: 368047
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:

> 368047- Hide quoted text -
>
> - Show quoted text -

Nick Johnson (Google)

unread,
Apr 8, 2010, 12:12:03 PM4/8/10
to google-a...@googlegroups.com
Hi Benjamin,

you need to define a servlet and servlet mapping for that handler as you would any other. For example:

<servlet>
  <servlet-name>remote-api</servlet-name>
  <servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>remote-api</servlet-name>
  <url-pattern>/remote_api</url-pattern>
</servlet-mapping>

-Nick Johnson

To unsubscribe from this group, send email to google-appengi...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Benjamin

unread,
Apr 8, 2010, 12:49:10 PM4/8/10
to Google App Engine
Thanks Nick, i was just coming back to this post to post that that
just occurred to me. Doing that worked just fine and i'm downloading
everything now. Thanks so much for your help!

On Apr 8, 12:12 pm, "Nick Johnson (Google)" <nick.john...@google.com>
wrote:

Reply all
Reply to author
Forward
0 new messages