source: trunk/abcl/examples/google-app-engine/README

Last change on this file was 13266, checked in by Mark Evenson, 14 years ago

Add an 'update' task to upload application to GAE.

File size: 1.5 KB
Line 
1Google App Engine
2=================
3
4Alex Muscar
5
6Running ABCL in a Google App Engine container.
7
8This example shows how to run your Java servlet off ABCL in general
9and in Google App Engine (GAE) in particular.
10
11When uploading your code to the server, be sure to put abcl.jar
12in war/WEB-INF/lib.
13
14
15Running Locally
16---------------
17
181.  Download the [Google App Engine SDK for Java][1], unzipping the
19    distribution somewhere on your filesystem
20    (e.g. "~/work/appengine-java-sdk-1.4.3").
21
22[1]: http://googleappengine.googlecode.com/files/appengine-java-sdk-1.4.3.zip
23
242.  Simply invoke Ant on the `build.xml' in this directory with the
25    `runserver' target, setting the `sdk.dir' JVM property to specify
26    the location of the SDK.
27
28        unix$ ant -Dsdk.dir=$HOME/work/appengine-java-sdk-1.4.3/ runserver
29
303.  Visit `http://localhost:8080/hello' in a web browser to see the example run.
31
32
33Deploying to GAE
34----------------
35
361.  To deploy the included example to GAE, you need to first obtain a
37    GAE account, and pick a GAE application id to use with the
38    application.
39
402.  Then you need to edit 'war/WEB-INF/appengine-web.xml' to specify
41    this application.  Just replace the contents of the <applciation>
42    tag (initially 'GAE-APPLICATION-ID-GOES-HERE') in the file with
43    your GAE ID.
44
453.  Then the Ant task 'update' should upload your application to GAE:
46
47        unix$ ant update
48
49    You will be prompted for the Google Account credentials associated
50    with the application ID.
51
52   
53
54         
55
56
57
58
59
Note: See TracBrowser for help on using the repository browser.