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

Book

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

Description

  • 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.



0201702444B04092002

Sample Content

Online Sample Chapter

The Jini Network Technology Vision

Table of Contents

(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.



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.

J2ME CLDC.

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.

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.



6. Jini Technology Basics.

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.



7. Jini Technology in Small Devices.

Plug-and-Work in Small Devices.

Better Device Driver Distribution.

Powerful Adaptive Architectures.

Compute Server.

Leasing.

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.

Benefits.

Functional Requirements.

Overview.

Discovery.

Surrogate Retrieval.

Activation.

Deactivation.

Specifications.

Surrogate Interfaces.

Surrogate Packaging.

Security.

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

Preface

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.



0201702444P03202002

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020