Google App Engine Standard Environment Remote API Sample
Java 7 runtime support on App Engine standard was deprecated on
December 13, 2017 and will be shut down entirely on January 16, 2019. It is replaced by the
Java 8 Runtime Environment.
Samples for the Java 8 runtime can be found here.
This sample demonstrates how to access App Engine Standard Environment APIs remotely,
using the Remote API.
Set up the server component of Remote API
- Navigate to the remote-server directory
- Update the <application> tag in src/main/webapp/WEB-INF/appengine-web.xml
with your project name.
- Update the <version> tag in src/main/webapp/WEB-INF/appengine-web.xml
with your version name.
- Deploy the app
mvn appengine:update
- Alternatively, run the app locally with
mvn appengine:devserver
Set up the client component of Remote API
- Package the app as a jar
mvn clean package
- Navigate to the target directory
- Excute the jar file with the server connection string as the first argument
- If you deployed the app, it should be "YOUR-APP-ID.appspot.com"
- If you are running on the development server, it should be "localhost"
java -jar appengine-remote-client-1.0-SNAPSHOT-jar-with-dependencies.jar "YOUR-APP-NAME"