Beginning Java Google App Engine / Edition 1 by Kyle Roche, Jeff Douglas | | 9781430225539 | Paperback | Barnes & Noble
Beginning Java Google App Engine / Edition 1

Beginning Java Google App Engine / Edition 1

by Kyle Roche, Jeff Douglas
     
 

ISBN-10: 143022553X

ISBN-13: 9781430225539

Pub. Date: 12/20/2009

Publisher: Apress

Google App Engine is one of the key technologies to emerge in recent years to help you build scalable web applications even if you have limited previous experience. If you are a Java programmer, this book offers you a Java approach to beginning Google App Engine. You will explore the runtime environment, front-end technologies like Google Web Toolkit, Adobe Flex,

Overview

Google App Engine is one of the key technologies to emerge in recent years to help you build scalable web applications even if you have limited previous experience. If you are a Java programmer, this book offers you a Java approach to beginning Google App Engine. You will explore the runtime environment, front-end technologies like Google Web Toolkit, Adobe Flex, and the datastore behind App Engine. You'll also explore Java support on App Engine from end to end.

The journey begins with a look at the Google Plugin for Eclipse and finishes with a working web application that uses Google Web Toolkit, Google Accounts, and Bigtable. Along the way, you’ll dig deeply into the services that are available to access the datastore with a focus on Java Data Objects (JDO), JDOQL, and other aspects of Bigtable.

With this solid foundation in place, you’ll then be ready to tackle some of the more advanced topics like integration with other cloud platforms such as Salesforce.com and Google Wave.

NOTE: The source code files which accompanied this title are no longer available. Neither Apress nor the author is able to supply these files.

What you’ll learn

  • How to get up and running with App Engine, starting with the Google Plugin for Eclipse
  • All about the development server for testing and developing your applications
  • How to develop applications using Servlets & JSPs, Spring Framework, and open source Flash Remoting and Messaging servers
  • How to leverage the datastore in your applications, including Persistence as a Service
  • How to use Spring as a Service for transactions, data access, and more
  • How to use Google Web Toolkit to create AJAX components to drive your web applications
  • How to send email and instant messages (XMPP) from within your application
  • How to increase performance of your apps by storing data in memory using the Memcache service


Who this book is for

This book is for Java programmers looking to get started on Google App Engine, as well as App Engine programmers looking to move to Java.

Table of Contents

  1. Beginning Google App Engine for Java
  2. Introduction to App Engine
  3. Getting Started with Google App Engine for Java
  4. Servlet Container and Frameworks
  5. Developing Your Application
  6. Authenticating Users
  7. Using the App Engine Datastore
  8. App Engine Services
  9. Administration and Integration


Product Details

ISBN-13:
9781430225539
Publisher:
Apress
Publication date:
12/20/2009
Edition description:
2010
Pages:
264
Product dimensions:
7.40(w) x 9.00(h) x 0.90(d)

Related Subjects

Table of Contents

Foreword xiii

About the Authors xv

About the Technical Reviewer xvii

Acknowledgments xix

Introduction xxi

Chapter 1 Beginning Google App Engine for Java 1

Cloud Computing and App Engine 1

Find More Time to Innovate 4

What You'll Learn in This Book 5

Summary 6

Chapter 2 Introduction to App Engine 7

App Engine Architecture 7

Being a Good Neighbor With Quotas 9

Billable and Fixed Quotas 10

Detailed Resource Quotas 12

Components of an App Engine Application 22

Summary 23

Chapter 3 Getting Started with Google App Engine for Java 25

Where Do We Start? 25

Create Your First App Engine Project 30

Local Development Server 37

Summary 42

Chapter 4 Servlet Container and Frameworks 43

Choosing a Framework 43

Servlets and JavaServer Pages 46

Views 46

Model 59

Controller 64

Deployment Descriptor 69

PersistenceManager 69

Spring MVC 70

Server Configuration 71

Views 72

Adobe Flex 74

Server Configuration 76

Client-Side Code 79

Server-Side Code 83

Summary 88

Chapter 5 Developing Your Application 89

Functional Specifications 89

Timecard UI Mock-up 90

Technical Specifications 91

Authentication 91

Presentation 91

Persistence 92

Using Google Web Toolkit 92

Creating Your Project 93

Running the Initial Starter Application 96

Developing Your Application 97

Required Imports 101

Coding Your UI 102

Adding Your Styles 107

Modifying Your Hosted Page 107

Running Your Application 108

Handling Client-Side Events 108

Summary 121

Chapter 6 Authenticating Users 123

Introducing Google Accounts 123

Restricting Access to Resources 124

Users API 125

Development Mode 126

Adding Authentication for YourApplication 127

Loginlnfo Class 128

LoginService and LoginServiceAsync Interfaces 129

Google Accounts Login Implementation 130

Modifying the Deployment Descriptor 131

Modifying the User Interface 131

Summary 133

Chapter 7 Using the App Engine Datastore 135

Introducing the App Engine Datastore 135

Working with Entities 136

Classes and Fields 137

CRUDing Entities 143

Performing Queries with JDOQL 145

Filtering Queries 146

Sorting Queries 147

Query Ranges 147

Using Indexes 147

Building Indexes 148

Creating Indexes In Development Mode 148

Using Transactions 149

Finishing Up Your Application 150

Making Remote Procedure Calls with GWT RPC 150

Creating Your Data Service 156

Modifying the Deployment Descriptor 161

Invoking the Service from the GWT Client 161

Displaying Timecard Entries 166

Summary 168

Chapter 8 App Engine Services 169

Setting up the Project 169

Memcache Service 171

URL Fetch Service 175

Images Service 178

Creating the Java Classes 179

Writing the ImageObject Class 180

Writing the PersistenceManagerFactory Class 182

Writing the ImageSource Class 182

Writing the ImageTransform Class 183

Completing the Application 186

Testing the Service 187

Mail API 189

XMPP Service 192

Summary I95

Chapter 9 Administration and Integration 197

Managing Your App Engine Application 197

The Application Dashboard 199

Application Versioning 203

Analyzing Log Files 204

Integration 206

Integration with Google Wave 206

Integration with Salesforce.com 214

Summary 218

Index 221

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >