App Engine Java VM Runtime Websocket Chat Copyright (C) 2010-2015 Google Inc.
Requires Apache Maven 3.1 or greater, and JDK 7+ in order to run. This application needs to be deployed to the App Engine Managed VMs.
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][https://cloud.google.com/console].
- Select your Cloud project.
- Select
Compute Engine
- Click the
Network
menu then click thedefault
network. - Click
Add Firewall rule
button in theFirewalls rules
section. - Type
chatservice
in theName
field,0.0.0.0/0
in the Source IP Ranges field andtcp:65080
in theAllowed protocols or ports
field, then clickCreate
button.
Now you're good to go!
To build:
Install the Cloud SDK for Managed VMs To run the application, do the following:
- Set the correct Cloud SDK project via
gcloud config set project YOUR_PROJECT
. - Run
mvn gcloud:deploy
- Visit
http://YOUR_PROJECT.appspot.com
.
For further information, consult the Java App Engine documentation.
To see all the available goals for the Cloud SDK plugin, run
mvn help:describe -Dplugin=gcloud