App Engine Java VM Runtime Websocket Chat Copyright (C) 2010-2014 Google Inc.
Requires Apache Maven 3.0 or greater, and JDK 7+ in order to run. This application needs to be deployed to the App Engine VM Runtime.
Make sure that you are invited to the VM Runtime Trusted Tester Program, and have downloaded the SDK.
In order to run this application, you also need to configure the Compute Engine firewall to allow incoming connections to the port 65080 by default.
Here is how to configure the Compute Engine firewall.
- Go to the cloud console.
- Select your project which is under the VM Runtime TT program.
- Select
Compute Engine
- Click the
Network
menu then click thedefault
network. - Click
Create new
button in theFirewalls
section. - Type
chatservice
in theName
field andtcp:65080
in theProtocols & Ports
field, then clickCreate
button.
Now you're good to go!
To build:
-
Rewrite the value of the
application
element in yourappengine-web.xml
to your app id. -
Run
mvn package
-
Run
appcfg.sh
of the SDK as follows:$ $SDK_DIR/bin/appcfg.sh -s preview.appengine.google.com update target/websocketchat-1.0-SNAPSHOT
-
Visit
http://chat.your-app-id.appspot.com/
.
For further information, consult the Java App Engine documentation.
To see all the available goals for the App Engine plugin, run
mvn help:describe -Dplugin=appengine