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/flexible/async-rest at master · didima7777/java-docs-samples

Expand file tree

/

async-rest

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

async-rest

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main
src/main
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Example Web App Using Asynchronous Servlets

This web app demonstrates using asynchronous servlet techniques to reduce server resources.

The code for this tutorial is here.

Initial Setup

First, complete the following steps:

  • Create your project and have it enabled for Managed VMs.
  • Obtain an app key for the Google Places WebService API.
  • Download and install the Beta build of the Google Cloud SDK.
  • Install the Cloud SDK app-engine-java component.
  • Authenticate wth the gcloud SDK: gcloud auth application-default login.
  • Install Maven if you haven't already.

Providing your Google Places API key

To run locally, you need to edit the pom.xml file and replace YOUR_PLACES_APP_KEY with the value of your key:

<places.appkey>YOUR_PLACES_APP_KEY</places.appkey>

To deploy to gcloud, you need to edit the src/main/appengine/app.yaml file and replace YOUR_PLACES_APP_KEY with the value of your key:

PLACES_APPKEY: 'YOUR_PLACES_APP_KEY'

Running locally without the AppEngine environment

The application does not use any AppEngine specific services, so you can run it simply on your local machine by doing:

 mvn jetty:run

Go to http://localhost:8080 to see the webapp.

Deploying to the cloud as an AppEngine ManagedVM

To automatically stage and deploy the webapp to your project in the cloud do:

mvn appengine:deploy

See here for more information on the GCloud Maven Plugin.

You are visitor 01402792 — 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.