The Smart Client Paradigm:iFeedBack 3.1 Benefits of Smart Clients 3.2 Introducing iFeedBack 3.3 iFeedBack Usage Scenarios 3.4 Implementation Walk Through 3.5 Summary Resources Chapter 4.
Trang 2Enterprise J2ME: Developing MobileJava Applications
Trang 3Realities, and Opportunities
1.1 Mobile Commerce Value Propositions1.2 Mobile Technology Adoption
1.3 The Search for Killer Mobile
Trang 4Chapter 3 The Smart Client Paradigm:iFeedBack
3.1 Benefits of Smart Clients
3.2 Introducing iFeedBack
3.3 iFeedBack Usage Scenarios
3.4 Implementation Walk Through 3.5 Summary
Resources
Chapter 4 Managed Smart Clients 4.1 Container-Managed Applications 4.2 OSGi Containers
4.3 A Simple Echo Service Example 4.4 Smart Client with HTTP Front End 4.5 Mobile Gateways
Trang 55.2 Smart Ticket in Action
5.3 Important Architectural Patterns 5.4 Implementation Techniques
5.5 Summary
Resources
Chapter 6 Advanced HTTP Techniques 6.1 The Decorator Approach
6.2 The Process-Chain Approach
6.3 Session Tracking via HTTP Cookies 6.4 HTTP Basic Authentication
Trang 67.5 The Impatient User
8.3 The JavaPhone API
8.4 The PDA Optional Package
8.5 Commercial Email and PIM Suites 8.6 Corporate Portal Servers
Trang 79.4 SMS from the Back End
9.5 Beyond SMS: The IM Convergence 9.6 SIP-Based IM Applications
9.7 Summary
Resources
Chapter 10 Enterprise Messaging 10.1 Mobile Enterprise Messaging 10.2 Introducing the JMS
10.3 Mobile JMS from iBus//Mobile 10.4 The IBM WebSphere MQ
Trang 811.3 Portable and Efficient Code UsingPreparedStatement
11.4 Access Stored Procedures UsingCallableStatement
11.5 The JDBC Optional Package for theCDC
11.10 PointBase Micro Edition
11.11 Example Application: ContactManager
Trang 912.2 The Oracle J2ME SODA SDK 12.3 The IBM DB2e FastRecordStore 12.4 Summary
14.3 Legacy Applications
14.4 Using Simplicity for Legacy
Databases
Trang 1014.5 Summary
Resources
Part V: XML and Mobile Web Services Chapter 15 XML for Small Devices 15.1 What Is XML?
15.2 Challenges for Small Devices 15.3 XML Parsing Models
15.4 Introducing Amazon XML Services 15.5 Amazon Services via XmlPull 15.6 Amazon Services via kDOM
Trang 1116.5 More kSOAP Examples
17.2 The XML Processing API
17.3 The JAX-RPC API
17.4 The SPI for Implementers
17.5 Compare with kXML and kSOAP 17.6 Summary
Trang 1219.3 Bouncy Castle Lightweight API 19.4 The IAIK ME JCE
19.5 Phaos Technology Micro FoundationToolkit
19.6 NTRU jNeo for Java Toolkit
Trang 13A.3 Remote and Local Data
A.4 Code Walk Through
A.5 Packaging and Building
A.6 Deployment
A.7 Summary
Appendix B Tools and J2ME Runtimes
Trang 15Enterprise J2ME: Developing Mobile Java
Applications
By Michael Juntao Yuan
Publisher : Prentice Hall PTR
Pub Date : October 23, 2003
Trang 16Yuan introduces innovations that make the platform evenmore powerful, ranging from new J2ME profiles andwireless messaging APIs to mobile databases and webservices tools These innovations allow existing Java(TM)developers (especially J2EE(TM) developers) to leveragetheir skills and add mobility to enterprise applications.Yuan also presents more than a dozen complete sampleapplicationsincluding the application that earned him thegrand prize in Nextel, Sun, and Motorola's nationwidewireless developer contest Coverage includes:
Patterns and best practices for building end-to-endmobile applications
Emerging mobile "killer applications": driving
Trang 17productivity and cost reduction
"Smart client" applications: architecture and
construction
Advanced HTTP techniques for authentication andsession tracking
Overcoming hardware and network limitations
Leading-edge mobile enterprise messaging techniquesMobile databases and synchronization engines
XML and mobile web services, including the J2MEWeb Services Optional Package
New options for mobile security in the enterprise
Trang 19By Michael Juntao Yuan
Publisher : Prentice Hall PTRPub Date : October 23, 2003ISBN : 0-13-140530-6Pages : 480
Slots : 1.0
Copyright
About Prentice Hall Professional Technical Reference
Foreword
Trang 20About this Book
Section 1.1 Mobile Commerce Value Propositions
Section 1.2 Mobile Technology Adoption
Section 1.3 The Search for Killer Mobile Applications
Section 1.4 Mobile Commerce Landscape
Trang 21Section 1.5 Summary
Resources
Chapter 2 J2ME: Is Mobile Java Ready for Enterprise?
Section 2.1 Why Java?
Section 2.2 The Java Community Process
Section 2.3 Java Everywhere
Section 2.4 Java 2 Micro Edition Explained
Section 2.5 Competing Technologies
Section 2.6 Summary
Resources
Part II: End-to-End Enterprise Applications
Chapter 3 The Smart Client Paradigm: iFeedBack
Section 3.1 Benefits of Smart Clients
Section 3.2 Introducing iFeedBack
Section 3.3 iFeedBack Usage Scenarios
Section 3.4 Implementation Walk Through
Trang 22Section 3.5 Summary
Resources
Chapter 4 Managed Smart Clients
Section 4.1 Container-Managed Applications
Section 4.2 OSGi Containers
Section 4.3 A Simple Echo Service Example
Section 4.4 Smart Client with HTTP Front End
Section 4.5 Mobile Gateways
Section 4.6 Summary
Resources
Chapter 5 Mobile Design Patterns: The Smart Ticket Blueprint
Section 5.1 Getting Started
Section 5.2 Smart Ticket in Action
Section 5.3 Important Architectural Patterns
Section 5.4 Implementation Techniques
Trang 23Section 5.5 Summary
Resources
Chapter 6 Advanced HTTP Techniques
Section 6.1 The Decorator Approach
Section 6.2 The Process-Chain Approach
Section 6.3 Session Tracking via HTTP Cookies
Section 6.4 HTTP Basic Authentication
Section 6.5 HTTP Digest Authentication
Section 6.6 Secure HTTP
Section 6.7 Summary
Resources
Chapter 7 End-to-End Best Practices
Section 7.1 Limited Device Hardware
Section 7.2 Slow, Unreliable Networks
Section 7.3 Pervasive Devices
Section 7.4 Ubiquitous Integration
Section 7.5 The Impatient User
Trang 24Section 7.6 Summary
Resources
Part III: Mobile Messaging Applications
Chapter 8 Email and PIM
Section 8.1 Basics of Email
Section 8.2 Introducing Mail4ME
Section 8.3 The JavaPhone API
Section 8.4 The PDA Optional Package
Section 8.5 Commercial Email and PIM Suites
Section 8.6 Corporate Portal Servers
Section 8.7 Summary
Resources
Chapter 9 Converged Mobile P2P Messaging
Section 9.1 Introducing the Wireless Messaging API
Section 9.2 WMA in Action
Trang 25Section 9.3 WMA Reference Implementation
Section 9.4 SMS from the Back End
Section 9.5 Beyond SMS: The IM Convergence
Section 9.6 SIP-Based IM Applications
Section 9.7 Summary
Resources
Chapter 10 Enterprise Messaging
Section 10.1 Mobile Enterprise Messaging
Section 10.2 Introducing the JMS
Section 10.3 Mobile JMS from iBus//Mobile
Section 10.4 The IBM WebSphere MQ Everyplace
Section 10.5 Summary
Resources
Part IV: Mobile Databases and Synchronization Engines
Chapter 11 Mobile Database for CDC Devices
Section 11.1 Database on the Go
Trang 26Section 11.5 The JDBC Optional Package for the CDC
Section 11.6 HSQL Database Engine
Section 11.7 iAnywhere Solutions SQL Anywhere Studio
Section 11.8 IBM DB2 Everyplace
Section 11.9 Oracle9i Lite
Section 11.10 PointBase Micro Edition
Section 11.11 Example Application: Contact Manager
Section 11.12 Summary
Resources
Chapter 12 Mobile Databases for MIDP Devices
Section 12.1 PointBase Micro Edition
Section 12.2 The Oracle J2ME SODA SDK
Trang 27Section 12.3 The IBM DB2e FastRecordStore
Section 12.4 Summary
Resources
Chapter 13 Database Synchronization
Section 13.1 Synchronization and Mobility
Section 13.2 PointBase UniSync
Section 13.3 IBM DB2 Everyplace
Section 13.4 iAnywhere Solutions MobiLink
Section 13.5 Oracle9i Mobile Server
Section 13.6 The Synchronized Contact Manager
Section 13.7 Summary
Resources
Chapter 14 Access Backend Databases
Section 14.1 Direct Access to Remote Databases
Section 14.2 The Oracle J2ME SQL SDK
Section 14.3 Legacy Applications
Trang 28Section 14.4 Using Simplicity for Legacy Databases
Section 14.5 Summary
Resources
Part V: XML and Mobile Web Services
Chapter 15 XML for Small Devices
Section 15.1 What Is XML?
Section 15.2 Challenges for Small Devices
Section 15.3 XML Parsing Models
Section 15.4 Introducing Amazon XML Services
Section 15.5 Amazon Services via XmlPull
Section 15.6 Amazon Services via kDOM
Section 15.7 A Mobile RSS Client
Section 15.8 Summary
Resources
Chapter 16 SOAP Web Services on Smart Clients
Trang 29Section 16.1 What Is SOAP Web Services?
Section 16.2 Introducing kSOAP
Section 16.3 kSOAP Explained
Section 16.4 Advanced kSOAP
Section 16.5 More kSOAP Examples
Section 16.6 What's in kSOAP v2.0?
Section 16.7 Summary
Resources
Chapter 17 The J2ME Web Services Optional Package
Section 17.1 A Little History
Section 17.2 The XML Processing API
Section 17.3 The JAX-RPC API
Section 17.4 The SPI for Implementers
Section 17.5 Compare with kXML and kSOAP
Section 17.6 Summary
Resources
Trang 30Chapter 18 Case Study: Mobile Clients for Location-Based
Services
Section 18.1 Location-Based Services
Section 18.2 Microsoft MapPoint Web Services
Section 18.3 MapPoint J2ME Clients
Section 18.4 Enhancing the Driving Directions Application
Section 18.5 Summary
Resources
Part VI: Advanced Mobile Security
Chapter 19 Mobile Security for Enterprise
Section 19.1 What Is Advanced Mobile Security?
Section 19.2 Lightweight Mobile Cryptography Toolkits
Section 19.3 Bouncy Castle Lightweight API
Section 19.4 The IAIK ME JCE
Section 19.5 Phaos Technology Micro Foundation Toolkit
Trang 31Section 19.6 NTRU jNeo for Java Toolkit
Section 19.7 B3 Security
Section 19.8 Device-Specific APIs
Section 19.9 Standardization of J2ME Security APIs
Section 19.10 Summary
Resources
Chapter 20 The J2ME Crypto Recipes
Section 20.1 Overview of Recipes
Section 20.2 Symmetric Encryption
Section 20.3 Password-Based Encryption
Section 20.4 Public Key Encryption
Section 20.5 Digital Signature
Section 20.6 Summary
Resources
Appendix A Basics of J2ME Application Development
Section A.1 Life Cycle Methods
Trang 32Section A.2 UI Model
Section A.3 Remote and Local Data
Section A.4 Code Walk Through
Section A.5 Packaging and Building
Section A.6 Deployment
Section A.7 Summary
Appendix B Tools and J2ME Runtimes for PDAs
Section B.1 Overview of the WebSphere Studio Device
Developer
Section B.2 Installing MIDP on PocketPC Devices
Section B.3 Installing Personal Profile on PocketPC Devices
Section B.4 Run Java Applications on the PocketPC Device
Section B.5 Summary
Top
Trang 34A Cataloging-in-Publication Data recordfor this book can be obtained from theLibrary of Congress
Editorial/Production
Supervision:Faye Gemmellaro
Cover Design Director: Jerry VottaCover Design: Talar Boorujy
Cover Photography: Karen Strelecki
Manufacturing Manager: Alexis R.Heydt-Long
Executive Editor: Gregory G Doench
Trang 35Editorial Assistant: Brandt Kenna
Marketing Manager: Jennifer
Lundberg
©2004 Pearson Education, Inc
Publishing as Prentice Hall ProfessionalTechnical Reference
Upper Saddle River, New Jersey 07458
Prentice Hall PTR offers excellent
discounts on this book when ordered inquantity for bulk purchases or special sales.For more information, please contact: U.S.Corporate and Government Sales, 1-800-382-3419,
corpsales@pearsontechgroup.com Forsales outside of the U.S., please contact:
Trang 36International Sales, 1-317-581-3793,
international@pearsontechgroup.com
Company and product names mentionedherein are the trademarks or registeredtrademarks of their respective owners
All rights reserved No part of this bookmay be reproduced, in any form or by anymeans, without permission in writing fromthe publisher
Printed in the United States of AmericaFirst Printing
Text printed on recycled paper
Pearson Education Ltd
Pearson Education Australia Pty., Limited
Trang 37Pearson Education Singapore, Pte Ltd.Pearson Education North Asia Ltd.
Pearson Education Canada, Ltd
Pearson Educatión de Mexico, S.A de C.V.Pearson EducationJapan
Pearson Education Malaysia, Pte.Ltd
Dedication
To my parents and my dear wife Ju
Top
Trang 39About Prentice Hall
Professional Technical Reference
With origins reaching back to the
industry's first computer science
publishing program in the 1960s, andformally launched as its own imprint in
1986, Prentice Hall Professional
Technical Reference (PH PTR) has
developed into the leading provider oftechnical books in the world today Oureditors now publish over 200 booksannually, authored by leaders in the fields
of computing, engineering, and business.Our roots are firmly planted in the soil
Trang 40that gave rise to the technical revolution.Our bookshelf contains many of theindustry's computing and engineeringclassics: Kernighan and Ritchie's CProgramming Language, Nemeth's UNIXSystem Administration Handbook,
Horstmann's Core Java, and Johnson'sHigh-Speed Digital Design
PH PTR acknowledges its auspiciousbeginnings while it looks to the future forinspiration We continue to evolve andbreak new ground in publishing by
providing today's professionals with
Trang 41tomorrow's solutions.
Top
Trang 43The U.S Department of Commerce published areport "Education and Training for the InformationTechnology Workface" in August 2003 It points outthat innovations that can drastically improve
productivity will continue to be developed by U.S.companies and that the developer community must
be prepared to leverage these innovations The keyquestion is to identify the technologies that manifestthese innovations and focus on those that driverevenue
Enterprise mobility has been identified as a verypromising answer technology as it enables
extensions to existing IT solutions These extensionsinclude support for alternate form factor deviceslike PDAs and Smart Phones, as well as extended
Trang 44operational characteristics such as sporadicallyconnected operations over low bandwidth networkwith potentially high latency and sparse geographiccoverage.
Many of today's solutions for financial traders, salesagents, factory floor engineers, warehouse
managers, and health care professionals still rely onpen-and pencil-based solutions when they are outthere in the field because they either don't havenetwork coverage, cannot use a PC-based formfactor, or both The overall business efficiency isoften limited by these "in the field" bottlenecks Asmore companies look into mobility extensions toimprove efficiency, which directly affects the
bottom line, developers who lead this field of based solution extensions for mobility will haveample job opportunities in the global economy