E-Book, Englisch, 264 Seiten
Roche / Douglas Beginning Java Google App Engine
1. ed
ISBN: 978-1-4302-2554-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
E-Book, Englisch, 264 Seiten
ISBN: 978-1-4302-2554-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
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.
Autoren/Hrsg.
Weitere Infos & Material
1;Title Page ;1
2;Copyright Page;2
3;Contents at a Glance;4
4;Table of Contents;5
5;Foreword;10
6;About the Authors;12
7;About the Technical Reviewer;14
8;Acknowledgments;15
9;Introduction;16
10;Chapter 1 Beginning Google App Engine for Java;17
10.1;Cloud Computing and App Engine;17
10.1.1;Find More Time to Innovate;20
10.1.2;What You’ll Learn in This Book;21
10.2;Summary;22
11;Chapter 2 Introduction to App Engine;23
11.1;App Engine Architecture;23
11.2;Being a Good Neighbor With Quotas;25
11.2.1;Billable and Fixed Quotas;26
11.2.2;Detailed Resource Quotas;28
11.2.2.1;Requests;28
11.2.2.2;Datastore;30
11.2.2.3;URL Fetch;34
11.2.2.4;XMPP;35
11.2.2.5;Image Manipulation;36
11.2.2.6;Memcache;37
11.3;Components of an App Engine Application;38
11.4;Summary;39
12;Chapter 3 Getting Started with Google App Engine for Java;40
12.1;Where Do We Start?;40
12.1.1;Installing the Java SDK;41
12.1.2;Installing the Google Plugin for Eclipse;41
12.1.3;Signing Up for Google App Engine;44
12.1.4;Launching the Demo Application;44
12.2;Create Your First App Engine Project;45
12.2.1;Project Artifacts;46
12.3;Local Development Server;52
12.3.1;Ready to Launch;52
12.3.2;Deploying Your Sample Application;54
12.4;Summary;57
13;Chapter 4 Servlet Container and Frameworks;58
13.1;Choosing a Framework;58
13.2;Servlets and JavaServer Pages;61
13.2.1;Views;61
13.2.2;Model;74
13.2.3;Controller;79
13.2.4;Deployment Descriptor;84
13.2.5;PersistenceManager;84
13.3;Spring MVC;85
13.3.1;Server Configuration;86
13.3.2;Views;87
13.4;Adobe Flex;89
13.4.1;Server Configuration;91
13.4.2;Client-Side Code;94
13.4.3;Server-Side Code;98
13.5;Summary;103
14;Chapter 5 Developing Your Application;104
14.1;Functional Specifications;104
14.1.1;Timecard UI Mock-up;105
14.2;Technical Specifications;106
14.2.1;Authentication;106
14.2.2;Presentation;106
14.2.3;Persistence;107
14.3;Using Google Web Toolkit;107
14.3.1;Creating Your Project;108
14.3.1.1;GWT Module Definition;109
14.3.1.2;The Host Page;109
14.3.2;Running the Initial Starter Application;111
14.3.2.1;Hosted Mode;111
14.3.2.2;Web Mode;112
14.4;Developing Your Application;112
14.4.1;Required Imports;116
14.4.2;Coding Your UI;117
14.4.3;Adding Your Styles;122
14.4.4;Modifying Your Hosted Page;122
14.4.5;Running Your Application;123
14.4.6;Handling Client-Side Events;123
14.5;Summary;136
15;Chapter 6 Authenticating Users;137
15.1;Introducing Google Accounts;137
15.1.1;Restricting Access to Resources;138
15.1.2;Users API;139
15.1.3;Development Mode;140
15.2;Adding Authentication for Your Application;141
15.2.1;LoginInfo Class;142
15.2.2;LoginService and LoginServiceAsync Interfaces;143
15.2.3;Google Accounts Login Implementation;144
15.2.4;Modifying the Deployment Descriptor;145
15.2.5;Modifying the User Interface;145
15.3;Summary;147
16;Chapter 7 Using the App Engine Datastore;149
16.1;Introducing the App Engine Datastore;149
16.2;Working with Entities;150
16.2.1;Classes and Fields;151
16.2.2;CRUDing Entities;157
16.2.2.1;Creating Entities;157
16.2.2.2;Fetching Entities;158
16.2.2.3;Updating Entities;158
16.2.2.4;Deleting Entities;159
16.3;Performing Queries with JDOQL;159
16.3.1;Filtering Queries;160
16.3.2;Sorting Queries;161
16.3.3;Query Ranges;161
16.4;Using Indexes;161
16.4.1;Building Indexes;162
16.4.2;Creating Indexes In Development Mode;162
16.5;Using Transactions;163
16.6;Finishing Up Your Application;164
16.6.1;Making Remote Procedure Calls with GWT RPC;164
16.6.1.1;TimeEntryData POJO;165
16.6.1.2;TimeEntryEntity JDO Class;167
16.6.1.3;NotLoggedIn Exception;169
16.6.2;Creating Your Data Service;170
16.6.3;Modifying the Deployment Descriptor;175
16.6.4;Invoking the Service from the GWT Client;175
16.6.5;Displaying Timecard Entries;180
16.7;Summary;182
17;Chapter 8 App Engine Services;183
17.1;Setting up the Project;183
17.2;Memcache Service;185
17.3;URL Fetch Service;189
17.4;Images Service;192
17.4.1;Creating the Java Classes;193
17.4.2;Writing the ImageObject Class;194
17.4.3;Writing the PersistenceManagerFactory Class;196
17.4.4;Writing the ImageSource Class;196
17.4.5;Writing the ImageTransform Class;197
17.4.6;Completing the Application;200
17.4.7;Testing the Service;201
17.5;Mail API;203
17.6;XMPP Service;206
17.7;Summary;209
18;Chapter 9 Administration and Integration;210
18.1;Managing Your App Engine Application;210
18.1.1;The Application Dashboard;212
18.1.2;Application Versioning;216
18.1.3;Analyzing Log Files;217
18.1.3.1;Downloading Log Files;218
18.2;Integration;219
18.2.1;Integration with Google Wave;219
18.2.1.1;Google Wave Gadgets;219
18.2.1.2;Google Wave Robots;220
18.2.2;Integration with Salesforce.com;227
18.2.2.1;Setting Up a Salesforce.com Development Org;228
18.2.2.2;Connecting to the Development Org;229
18.3;Summary;231
19;Index;233




