CONTENTS
Beginning Mobile Application Development in the Cloud
Published by
John Wiley & Sons, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Copyright 2012 by John Wiley & Sons, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-1-118-03469-9
ISBN: 978-1-118-20333-0 (ebk)
ISBN: 978-1-118-20335-4 (ebk)
ISBN: 978-1-118-20334-7 (ebk)
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions .
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read.
For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
Wiley also publishes its books in a variety of electronic formats and by print-on-demand. Not all content that is available in standard print versions of this book may appear or be packaged in all book formats. If you have purchased a version of this book that did not include media that is referenced by or accompanies a standard print version, you may request this media by visiting http://booksupport.wiley.com . For more information about Wiley products, visit us at www.wiley.com .
Library of Congress Control Number: 2011936907
Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc., is not associated with any product or vendor mentioned in this book.
For Orla, Saorla, Lola and Ruadhn, all my love.
ABOUT THE AUTHOR
RICHARD RODGER is the founder of Chartaca.com , a mobile analytics company built on the PhoneGap and Node.js technologies. He has led the successful development of several large scale enterprise mobile services, particularly in the news and media industry. He was previously CTO of FeedHenry.com , a JavaScript-focused cloud hosting platform for mobile apps, also based on PhoneGap and Node.js. As a senior researcher at the Telecommunications Software & Services Group at the Waterford Institute of Technology, Ireland, he led the research team that built the core platform that became FeedHenry. Richard is also the founder of Ricebridge.com , a company providing Java components for high volume data processing.
Richard has been a long-time participant in the Java open source community, and more recently in the Node.js community, contributing several modules for database integration and systems monitoring.
Richard has degrees in Computer Science from the Waterford Institute of Technology and Mathematics and Philosophy from Trinity College Dublin, Ireland.
CREDITS
ACQUISITIONS EDITOR
Paul Reese
PROJECT EDITOR
Kelly Talbot
TECHNICAL EDITORS
Matthew Baxter-Reynolds
Dale Cruse
PRODUCTION EDITOR
Becca Anderson
COPY EDITORS
Kitty Wilson
Kim Cofer
EDITORIAL MANAGER
Mary Beth Wakefield
FREELANCER EDITORIAL MANAGER
Rosemarie Graham
ASSOCIATE DIRECTOR OF MARKETING
David Mayhew
MARKETING MANAGER
Ashley Zurcher
BUSINESS MANAGER
Amy Knies
PRODUCTION MANAGER
Tim Tate
VICE PRESIDENT AND EXECUTIVE GROUP PUBLISHER
Richard Swadley
VICE PRESIDENT AND EXECUTIVE PUBLISHER
Neil Edde
ASSOCIATE PUBLISHER
Jim Minatel
PROJECT COORDINATOR, COVER
Katie Crocker
PROOFREADER
Jen Larsen, Word One New York
INDEXER
Robert Swanson
COVER DESIGNER
LeAndra Young
COVER IMAGE
AnastasiyaShanhina
ACKNOWLEDGMENTS
THERE IS AN ENORMOUS DIFFERENCE BETWEEN talking about technology and writing about it. It is surprisingly difficult to place your thoughts on paper in coherent form. I do not think anyone can ever claim to have a written a book by themselves. Behind every book is a broad and deep support structure, without which no author would ever make it to the finish line.
I am deeply grateful to my wife Orla, and my children, Saorla, Lola and Ruadhn. I missed you. You were always unconditionally there for me and gave me the strength to write this book. I am also very grateful to my parents, Hanish and Noreen, and Orlas parents, Noel and Kay. Thank you for helping us keep things together. Lauren, my sister, thank you for your words of encouragement. You are always thinking of us. And thank you, Alaister and Conor, you always believed in me.
I was delighted, in the Summer of 2010, to receive a call from Paul Reese at Wiley, inviting me to think about writing a book on the convergence of mobile apps and cloud computing. Ive built two companies on this idea, and its only getting started! Thank you, Paul, for that call and your patience as I juggled work and writing.
A very heartfelt thank you to Kelly Talbot, my editor and guide. It is an absolute pleasure to work with such a great professional. Thank you for getting me through my first book.
Thank you, too, to the other members of the team, Matthew Baxter-Reynolds and Dale Cruse, for your astute technical input, and Kitty Wilson for so much detailed work improving my prose. This book is far better for your efforts. All remaining errors in text and code are mine alone.
And thank you to all those in my professional life, colleagues and customers alike. You have helped me learn and grow. There would be nothing to write without you.