Skip to content

Latest commit

 

History

History
 
 

taskqueue-push

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

A Java Task Queue example for Google App Engine

This sample demonstrates how to use the TaskQueue API on Google App Engine.

Running locally

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

$ mvn appengine:devserver

Go to the site localhost:8080 to add elements to the queue. They will appear in the log as the result of the Enqueue servlet transmitting the data to the Worker servlet.

Deploying

In the following command, replace YOUR-PROJECT-ID with your Google Cloud Project ID.

$ mvn appengine:update -Dappengine.appId=YOUR-PROJECT-ID -Dappengine.version=SOME-VERSION

Setup

To save your project settings so that you don't need to enter the parameters, you can:

  1. Update the <application> tag in src/main/webapp/WEB-INF/appengine-web.xml with your project name.

  2. Update the <version> tag in src/main/webapp/WEB-INF/appengine-web.xml with a valid version number.

You will now be able to run

$ mvn appengine:update

without the need for any additional parameters.