BN.com Gift Guide

Beginning Java Google App Engine / Edition 1

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 95%)
Other sellers (Paperback)
  • All (17) from $1.99   
  • New (10) from $22.01   
  • Used (7) from $1.99   

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


Read More Show Less

Product Details

  • ISBN-13: 9781430225539
  • Publisher: Apress
  • Publication date: 12/21/2009
  • Edition number: 1
  • Pages: 264
  • Product dimensions: 7.40 (w) x 9.00 (h) x 0.90 (d)

Meet the Author

Kyle Roche is the head of sales engineering and enablement at Appirio. Appirio built one of the first prototypes for Java support on App Engine, which was shown at the Campfire launch. Appirio builds applications that leverage App Engine or the Force.com platform. Other areas of expertise are in Facebook application development and Amazon Web Services. Kyle's website is KyleRoche.com.

Jeff Douglas is a senior technical consultant at Appirio. He has more than 10 years of experience building enterprise Java applications for SAP and was an early adopter of App Engine for Java. He contributed sample code for the Salesforce.com release of the Force.com for Google App Engine Java Toolkit. Jeff's website is blog.jeffdouglas.com.

Jeff Douglas is a senior technical consultant at Appirio. He has more than 10 years of experience building enterprise Java applications for SAP and was an early adopter of App Engine for Java. He contributed sample code for the Salesforce.com release of the Force.com for Google App Engine Java Toolkit. Jeff's website is blog.jeffdouglas.com.

Read More Show Less

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

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)