GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/appengine-java11-bundled-services/datastore at main · glaforge/java-docs-samples

Expand file tree

/

datastore

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

datastore

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Google Cloud Datastore Sample for App Engine Standard Java11 Bundled Services

Open in Cloud Shell

This sample demonstrates how to use Google Cloud Datastore from Google App Engine standard Java11 bundled services environment.

Difference between App Engine Java8 and Java11 Bundled Services

The only difference between a Java8 application and a Java11 application is in the appengine-web.xml file where you need to define the Java11 runtime and declare you need the App Engine APIs:

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
    <runtime>java11</runtime>
    <app-engine-apis>true</app-engine-apis>
</appengine-web-app>

Everything else should remain the same in terms of App Engine APIs access, WAR project packaging, and deployment. This way, it should be easy to migrate your existing GAE Java8 applications to GAE Java11.

Running locally

This example uses the Cloud SDK Maven plugin. To run this sample locally:

mvn package appengine:run

To see the results of the sample application, open localhost:8080 in a web browser.

Deploying

mvn clean package appengine:deploy
mvn appengine:deployIndex
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.