Home > Store

Developing Jini™ Applications Using J2ME™ Technology

Register your product to gain access to bonus material or receive a coupon.

Developing Jini™ Applications Using J2ME™ Technology


  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2002
  • Dimensions: 7-3/8x9-1/4
  • Pages: 368
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-70244-4
  • ISBN-13: 978-0-201-70244-6

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:

  • Summaries of the J2ME environment and Jini networking technology
  • Comparisons of the different architectures of various information appliances on the same network
  • Detailed instructions on using the tools and APIs offered by the J2ME environment for Jini clients and services to federate heterogeneous hardware and software components into a seamless network

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.


Sample Content

Online Sample Chapter

The Jini Network Technology Vision

Table of Contents

(NOTE: Each chapter concludes with a Summary.)


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.

2. The Power of Java Technology in Small Devices.

Java Technology Addresses the Problems of Small Devices.

J2ME Technology.

The Increasing Power of Small Devices.


Technical Overview.

New Features.

Unsupported Features.

J2ME Connected Device Configuration.

3. The Jini Network Technology Vision.

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.

4. J2ME Basics.

Java Technology for Consumer and Embedded Devices.

J2ME PersonalJava.

J2ME Configurations and Profiles.

The Migration Path from PersonalJava to J2ME.

Programming Issues.

5. Developing with J2ME.

Preliminary Steps.

Deciding Which Profile to Choose.

Mobile Information Device Profile.

Download and Installation.


Running an Example Program.

Foundation Profile.

Download and Installation.


Running an Example Program.

Personal Profile.

Download and Installation.


Running an Example Program.

6. Jini Technology Basics.

Jini Network Terminology.

The Plug-and-Work Model.

Object Protocol.

Dynamic Network Edges.




Lookup and Discovery.

Simple Code Example.


Quick-Start Guide for the Jini Technology Environment.

7. Jini Technology in Small Devices.

Plug-and-Work in Small Devices.

Better Device Driver Distribution.

Powerful Adaptive Architectures.

Compute Server.


Resource Constraints.

Class Loading.

Intermittent Connectivity.

8. J2ME RMI Optional Package.

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.

9. J2ME RMI Optional Package Example.

Building the J2ME RMI Optional Package.

A Simple RMI Service.

Connecting the RMI Service.

Using RMI Optional Package with Jini Technology.

10. Jini Surrogate Architecture.


Functional Requirements.



Surrogate Retrieval.




Surrogate Interfaces.

Surrogate Packaging.


Downloading the Jini Surrogate Architecture.

11. Jini Surrogate Architecture Example.

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.

12. Other Java Technology Environments.

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.

13. Another Java Technology Example.

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.

14. Jini Technology Design Ideas.

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.

Legend for Appendices.

Appendix A. J2ME CDC/Foundation Profile Almanac.

Appendix B. J2ME CDC/RMI Optional Package 1.0 Almanac.

Appendix C. J2ME CDC Personal Profile (java.applet, java.awt, and java.beans) 1.0 Almanac.

Index. 0201702444T03202002


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.



Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership