SPECIAL OFFER
Use code BACKTOLEARN during checkout to save 50% on books, eBooks, & videos. Shop now.
Register your product to gain access to bonus material or receive a coupon.
This book is your key to understanding and avoiding the common traps and pitfalls that await developers approaching Jini and J2ME technology for the first time. Using practical examples, diagrams, and sample code, Developing Jini Applications Using J2ME Technology provides the detailed roadmap needed to design and implement the applications necessary to make a Jini network function successfully. The concrete guidance offered here will give developers the edge they need to construct Jini networks that are robust enough to thrive in spite of the challenges--for example, slow or unreliable connections--embedded devices, such as cell phones, pagers, PDAs, and smart cards, can pose.
Brought to you by one of the experts at Sun Microsystems, Inc., Developing Jini Applications Using J2ME Technology delivers unrivaled insight into the heart of Jini and J2ME. Among the key topics covered are:
Used in conjunction with Sun's Jini connection architecture, J2ME provides an unparalleled "chest" of tools and resources to make the most of today's Web-based environment with its countless nodes scattered across the far-flung reaches of a network. This book is your key to unlocking many possibilities.
The Jini Network Technology Vision
(NOTE: Each chapter concludes with a Summary.)
Preface.
1. Introduction.
Distributed Computing and Embedded Devices: A Natural Fit.
How Traditional Networks Have Failed.
Benefits of Using Java Technology.
Advantages of Jini Network Technology.
How Java and Jini Technologies Work Together in Embedded Devices.
Java Technology Addresses the Problems of Small Devices.
J2ME Technology.
The Increasing Power of Small Devices.
J2ME CLDC.
Technical Overview.
New Features.
Unsupported Features.
J2ME Connected Device Configuration.
Wire Protocols: Constricting and Fragile.
Objects on the Network.
The API Defines the Network Interface.
Byte-Level Protocols Are Irrelevant.
Late Binding Insulates Developers.
The Power of Write Once, Run Anywhere.
Capitalizing on the Simplifying Assumptions of Java Technology.
Objects on the Network.
Jini Technology Matters in Small Devices.
Java Technology for Consumer and Embedded Devices.
J2ME PersonalJava.
J2ME Configurations and Profiles.
The Migration Path from PersonalJava to J2ME.
Programming Issues.
Preliminary Steps.
Deciding Which Profile to Choose.
Mobile Information Device Profile.
Download and Installation.
Building.
Running an Example Program.
Foundation Profile.
Download and Installation.
Building.
Running an Example Program.
Personal Profile.
Download and Installation.
Building.
Running an Example Program.
Jini Network Terminology.
The Plug-and-Work Model.
Object Protocol.
Dynamic Network Edges.
Leases.
Attributes.
Groups.
Lookup and Discovery.
Simple Code Example.
Proxy.
Quick-Start Guide for the Jini Technology Environment.
Plug-and-Work in Small Devices.
Better Device Driver Distribution.
Powerful Adaptive Architectures.
Compute Server.
Leasing.
Resource Constraints.
Class Loading.
Intermittent Connectivity.
RMI Optional Package for the J2ME CDC.
RMI Optional Package Design Goals.
J2SE Features.
The Security of the Java Programming Model.
Dependency Considerations for Downloading Code.
Serving Java Code in a Small Environment.
Interoperability with J2SE.
Java Card RMI Technology.
J2ME CDC/CLDC Client Method Invocation Semantics.
Java Card Side-Server Implementation.
Other Considerations.
Building the J2ME RMI Optional Package.
A Simple RMI Service.
Connecting the RMI Service.
Using RMI Optional Package with Jini Technology.
Benefits.
Functional Requirements.
Overview.
Discovery.
Surrogate Retrieval.
Activation.
Deactivation.
Specifications.
Surrogate Interfaces.
Surrogate Packaging.
Security.
Downloading the Jini Surrogate Architecture.
Guide to Developing the Example.
Decide on the Client/Surrogate Protocol.
Write the Client Program.
Write the Surrogate Program.
Run the Jini Technology Environment.
Start the Client Program.
Verify the Surrogate Is Running.
Local Application Servers.
External Application Servers.
Integrating J2ME Devices with the Enterprise.
Sun Open Net Environment.
Integrating with CRM.
Integrating with ERP.
Integrating with a Sales Organization.
Guide to Developing the Example.
Decide on which Java Technology Environment to Use.
Decide on the Protocol to Use to Interact with the Other Type of Environment.
Write the Client Program.
Write the Surrogate Program.
Run the Jini Technology Environment.
Start the Client Program.
Verify that the Surrogate Runs Correctly.
New Ideas for Jini Technology.
J2ME Future Enhancements.
Jini Future Enhancements.
Existing Peer-to-Peer Technology.
Peer-to-Peer Strategy.
J2ME Client Device Strategy.
Further Readings and Online Resources.
The world of Java technology is quickly changing from the world of the desktop computer and back-end servers to that of small consumer electronics and embedded devices. During the next few years small devices that connect to the Internet will far outnumber larger personal computers. Consumer products such as PDAs (personal digital assistants), cellular phones, game consoles, television set-top boxes, and car navigation systems will be the new launching pad for the Web.
The Java 2 Platform, Micro Edition (J2ME) technology from Sun Microsystems addresses the needs of this new environment. This book explains the concepts of profiles and configurations to help simplify the required pieces of technology for smaller Java technology-enabled devices targeted for the consumer and the embedded market.
With Jini network technology, any small device can connect to the network in a simple manner. New mechanisms have been designed for software and hardware to automatically join together into a federation of devices and services. This is a natural progression because Jini technology uses a Java distributed computing platform architecture.
Joining the J2ME environment and Jini technology is an easy fit. Jini network technology enables small Java technology-enabled devices to talk with each other, and the J2ME environment enables the simple programming of small devices using the Java computing platform.
This book teaches you how to use both J2ME technology and Jini network technology to design and implement consumer and embedded devices. It is intended for software developers and Java hobbyists. The reader will discover the world of the J2ME environment and Jini network technology through detailed explanations and programming examples. Before starting, the reader should have a good sense of Java programming and a fair understanding of computer networking. This book does not require specific knowledge of embedded systems development, only a fair understanding of the Java programming language.
This book focuses on the concepts of J2ME technology and Jini network technology. The reader will learn about the different network architectures that are available for small devices. Finally, code examples are included and described to show how programming small devices using Jini technology is done in the Java programming language.
Developing Jini Applications Using J2ME Technology will help the reader get a good start in the design and development of the next generation of connected Java technology-enabled small devices that will take the world beyond the personal computer.