Beginning Java Google App Engine - Kyle Roche, Jeff Douglas

Beginning Java Google App Engine (eBook)

eBook Download: PDF
2011 | 1st ed.
264 Seiten
Apress (Verlag)
978-1-4302-2554-6 (ISBN)
Systemvoraussetzungen
39,58 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

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.



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.
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.

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.

Title Page 1
Copyright Page 2
Contents at a Glance 4
Table of Contents 5
Foreword 10
About the Authors 12
About the Technical Reviewer 14
Acknowledgments 15
Introduction 16
Chapter 1 Beginning Google App Engine for Java 17
Cloud Computing and App Engine 17
Find More Time to Innovate 20
What You’ll Learn in This Book 21
Summary 22
Chapter 2 Introduction to App Engine 23
App Engine Architecture 23
Being a Good Neighbor With Quotas 25
Billable and Fixed Quotas 26
Detailed Resource Quotas 28
Requests 28
Datastore 30
URL Fetch 34
XMPP 35
Image Manipulation 36
Memcache 37
Components of an App Engine Application 38
Summary 39
Chapter 3 Getting Started with Google App Engine for Java 40
Where Do We Start? 40
Installing the Java SDK 41
Installing the Google Plugin for Eclipse 41
Signing Up for Google App Engine 44
Launching the Demo Application 44
Create Your First App Engine Project 45
Project Artifacts 46
Local Development Server 52
Ready to Launch 52
Deploying Your Sample Application 54
Summary 57
Chapter 4 Servlet Container and Frameworks 58
Choosing a Framework 58
Servlets and JavaServer Pages 61
Views 61
Model 74
Controller 79
Deployment Descriptor 84
PersistenceManager 84
Spring MVC 85
Server Configuration 86
Views 87
Adobe Flex 89
Server Configuration 91
Client-Side Code 94
Server-Side Code 98
Summary 103
Chapter 5 Developing Your Application 104
Functional Specifications 104
Timecard UI Mock-up 105
Technical Specifications 106
Authentication 106
Presentation 106
Persistence 107
Using Google Web Toolkit 107
Creating Your Project 108
GWT Module Definition 109
The Host Page 109
Running the Initial Starter Application 111
Hosted Mode 111
Web Mode 112
Developing Your Application 112
Required Imports 116
Coding Your UI 117
Adding Your Styles 122
Modifying Your Hosted Page 122
Running Your Application 123
Handling Client-Side Events 123
Summary 136
Chapter 6 Authenticating Users 137
Introducing Google Accounts 137
Restricting Access to Resources 138
Users API 139
Development Mode 140
Adding Authentication for Your Application 141
LoginInfo Class 142
LoginService and LoginServiceAsync Interfaces 143
Google Accounts Login Implementation 144
Modifying the Deployment Descriptor 145
Modifying the User Interface 145
Summary 147
Chapter 7 Using the App Engine Datastore 149
Introducing the App Engine Datastore 149
Working with Entities 150
Classes and Fields 151
CRUDing Entities 157
Creating Entities 157
Fetching Entities 158
Updating Entities 158
Deleting Entities 159
Performing Queries with JDOQL 159
Filtering Queries 160
Sorting Queries 161
Query Ranges 161
Using Indexes 161
Building Indexes 162
Creating Indexes In Development Mode 162
Using Transactions 163
Finishing Up Your Application 164
Making Remote Procedure Calls with GWT RPC 164
TimeEntryData POJO 165
TimeEntryEntity JDO Class 167
NotLoggedIn Exception 169
Creating Your Data Service 170
Modifying the Deployment Descriptor 175
Invoking the Service from the GWT Client 175
Displaying Timecard Entries 180
Summary 182
Chapter 8 App Engine Services 183
Setting up the Project 183
Memcache Service 185
URL Fetch Service 189
Images Service 192
Creating the Java Classes 193
Writing the ImageObject Class 194
Writing the PersistenceManagerFactory Class 196
Writing the ImageSource Class 196
Writing the ImageTransform Class 197
Completing the Application 200
Testing the Service 201
Mail API 203
XMPP Service 206
Summary 209
Chapter 9 Administration and Integration 210
Managing Your App Engine Application 210
The Application Dashboard 212
Application Versioning 216
Analyzing Log Files 217
Downloading Log Files 218
Integration 219
Integration with Google Wave 219
Google Wave Gadgets 219
Google Wave Robots 220
Integration with Salesforce.com 227
Setting Up a Salesforce.com Development Org 228
Connecting to the Development Org 229
Summary 231
Index 233

Erscheint lt. Verlag 29.1.2011
Zusatzinfo 264 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Informatik Programmiersprachen / -werkzeuge Java
Informatik Software Entwicklung Objektorientierung
Mathematik / Informatik Informatik Theorie / Studium
Schlagworte Eclipse • Google Web Toolkit • Java • Java Data Objects • JavaServer Pages • Scala • Servlet
ISBN-10 1-4302-2554-8 / 1430225548
ISBN-13 978-1-4302-2554-6 / 9781430225546
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 4,5 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Einführung, Ausbildung, Praxis

von Christian Ullenboom

eBook Download (2023)
Rheinwerk Computing (Verlag)
34,93
Moderne GUIs für RIAs und Java-Applikationen

von Ralph Steyer

eBook Download (2022)
Springer Fachmedien Wiesbaden (Verlag)
42,99