To develop applications using wireless Java technology, you'll need to assimilate information from several fields. You'll need to understand something about wireless communications technology, the business of wireless communications, and a lot about the Java platform. Where should you begin? This page contains a high-level overview of wireless Java technology and many links to detailed information about specific subjects.
Wireless communications is a huge field, encompassing everything from radio and television broadcasting through pagers, mobile phones, and satellite communications. The field of mobile phones is expanding very fast at the same time that standards and protocols are being adopted, used, updated, and sometimes discarded. The other rapidly expanding part of the wireless world is that of wireless local area networks (LANs). Driven by widespread acceptance of the IEEE 802.11 standard, wireless local networking for computers and other devices is spreading rapidly.
Although wireless may seem like a special case, it is actually more intuitive and more natural than wired networking. Some day soon the need to plug a laptop into a network physically will seem quaint and antiquated. The notion that you could walk into a room with your cell phone and have it unable to interact with other devices in the room will seem unbelievably primitive. The future will reveal that wired networks are the special case.
Conceptually, wireless communications can be split into two types, local and wide area. A local device is similar to a key fob with a button that unlocks a car, a 900 MHz cordless phone, a radio control toy, or a Bluetooth network. All of these devices operate over short distances, typically just a few meters.
Wide area wireless devices operate effectively over a much greater area. A pager or mobile phone is a good example; you can talk on your mobile phone to any other phone on the planet. These devices' greater range relies on a trick, however: a more elaborate land-based network. A mobile phone doesn't have that much more radio power than a radio control toy. What it does have is a network of carefully placed radio antennas (cell towers); the phone can continue to operate as long as it is within range of at least one tower. The mobile phone device receives service from a wireless carrier, a company that operates the land-based network.
While a number of industry consortia and standard bodies, such as the International Telecommunication Union, are trying to define or foster the development of standards for the wireless world, today's wireless world is still fragmented and complex. If you buy a mobile phone in the U.S. today, it might run on Motorola's iDEN network or Sprint's PCS network. Take it overseas to Europe and you'll be out of luck--your phone will not work with Europe's GSM network, nor will it work with the PDC network or any of the other mobile networks that live in Japan.
The Java Platform comprises three elements:
Taken together, the Java language, Java virtual machine 1 , and Java APIs compose the Java platform. Moreover, the Java platform is designed to encompass a wide range of computer hardware, everything from smart cards through enterprise servers. Therefore, the Java platform comes in three flavors:
To learn much more about Java technology or the Java platform, visit LINK:
Specifications for Java SE, Java EE, and Java ME are developed under the aegis of the Java Community Process (JCP). A specification begins life as a Java Specification Request (JSR). An expert group consisting of representatives from interested companies is formed to create the specification. The JSR then passes through various stages in the JCP before it is finished. Every JSR is assigned a number. Java ME specifications are commonly referred to by their JSR number.
Unlike Java SE, Java ME is not a piece of software, nor is it a single specification. This difference can be confusing, even for developers who are already familiar with Java SE. Instead, Java ME is a platform, a collection of technologies and specifications that are designed for different parts of the small device market. Because Java ME spans such a variety of devices, it wouldn't make sense to try to create a one-size-fits-all solution.
Java ME, therefore, is divided into configurations, profiles,and optional packages. Configurations are specifications that detail a virtual machine and a base set of APIs that can be used with a certain class of device. A configuration, for example, might be designed for devices that have less than 512 KB of memory and an intermittent network connection. The virtual machine is either a full Java Virtual Machine 1 (as described in the specification) or some subset of the full JVM 1 . The set of APIs is customarily a subset of the Java SE APIs.
A profile builds on a configuration but adds more specific APIs to make a complete environment for building applications. While a configuration describes a JVM 1 and a basic set of APIs, it does not by itself specify enough detail to enable you to build complete applications. Profiles usually include APIs for application life cycle, user interface, and persistent storage.
An optional package provides functionality that may not be associated with a specific configuration or profile. One example of an optional package is the Bluetooth API (JSR 82), which provides a standardized API for using Bluetooth networking. This optional package could be implemented alongside virtually any combination of configurations and profiles.
The current universe of configurations, profiles and optional packages is shown in the diagram below. The tables immediately following provide more details about the abbreviations in the figure.
Java ME Overview
Configurations | ||
---|---|---|
JSR 30 | CLDC 1.0 | Connected, Limited Device Configuration |
JSR 139 | CLDC 1.1 | Connected, Limited Device Configuration 1.1 |
JSR 36 | CDC | Connected Device Configuration |
JSR 218 | CDC 1.1 | Connected Device Configuration 1.1 |
Profiles | ||
JSR 37 | MIDP 1.0 | Mobile Information Device Profile |
JSR 118 | MIDP 2.0 | Mobile Information Device Profile 2.0 |
JSR 75 | PDAP | PDA Profile |
JSR 46 | FP | Foundation Profile |
JSR 219 | FP 1.1 | Foundation Profile 1.1 |
JSR 129 | PBP | Personal Basis Profile |
JSR 217 | PBP 1.1 | Personal Basis Profile 1.1 |
JSR 62 | PP | Personal Profile |
JSR 215 | PP 1.1 | Personal Profile 1.1 |
JSR 195 | IMP | Information Module Profile |
JSR 228 | IMP-NG | Information Module Profile - Next Generation |
Optional Packages | ||
JSR 75 | PIM | PDA Optional Packages for the Java ME Platform |
JSR 82 | BTAPI | Java APIs for Bluetooth |
JSR 120 | WMA | Wireless Messaging API |
JSR 205 | WMA 2.0 | Wireless Messaging API 2.0 |
JSR 135 | MMAPI | Mobile Media API |
JSR 164 | JAIN SIMPLE Presence | |
JSR 165 | JAIN SIMPLE Instant Messaging | |
JSR 172 | Java ME Web Services | |
JSR 177 | SATSA | Security and Trust Services API for Java ME |
JSR 179 | Location API for Java ME | |
JSR 180 | SIP | SIP API for Java ME |
JSR 184 | 3D | Mobile 3D Graphics API for Java ME |
JSR 186 | JAIN Presence | |
JSR 187 | JAIN Instant Messaging | |
JSR 190 | Event Tracking API for Java ME | |
JSR 209 | Advanced Graphics and User Interface Optional Package for Java ME Platform | |
JSR 211 | CHAPI | Content Handling API |
JSR 213 | Micro WSCI Framework for Java ME | |
JSR 214 | Micro BPSS for Java ME Devices | |
JSR 226 | Scalable 2D Vector Graphics API | |
JSR 229 | Payment API | |
JSR 230 | Data Sync API | |
JSR 232 | Mobile Operational Management | |
JSR 234 | Advanced Multimedia Supplements | |
JSR 238 | Mobile Internationalization API | |
JSR 239 | Java Bindings for OpenGL ES | |
JSR 246 | Device Management API | |
JSR 253 | Mobile Telephony API (MTA) |
As the diagram shows, Java ME has two main branches.The first is based on the Connected, Limited Device Configuration (CLDC). This configuration is for small wireless devices with intermittent network connections, like pagers, mobile phones, and Personal Digital Assistants (PDAs). The Mobile Information Device Profile (MIDP), which is based on CLDC, was the first finished profile and thus the first finished Java ME application environment. MIDP-compliant devices are widely available.
The other major branch of the Java ME tree is based on the Connected Device Configuration (CDC). This configuration is for larger devices (in terms of memory and processing power) with robust network connections. Set-top boxes and internet appliances are good examples of CDC devices, although high-end PDAs like the Sharp Zaurus also fit this configuration well. The Foundation Profile extends CDC and serves as the basis for several other profiles. It provides fundamental APIs gleaned from Java SE, including classes and interfaces from java.lang
, java.io
, java.security
, java.util
, and more.
Optional packages bubble like a froth above the CLDC and CDC branches of Java ME. These provide all sorts of capabilities ranging from Bluetooth communication through web services and instant messaging. Look in the table for links to the specifications themselves.
The world of wireless Java technology also includes Java Card, for smart cards. For more information on Java Card, see:
Devices implement a complete software stack, which usually consists of a configuration, a profile, and optional APIs. First generation Java ME mobile phones usually implemented the following software stack:
Example Java ME Stack
Given the plethora of configurations, profiles, and especially optional packages, how does a developer know what to expect on a device? JSR 185, Java Technology for the Wireless Industry, addresses this question by assembling other building blocks into a complete application environment. JSR 185 mandates CLDC 1.0 or 1.1, MIDP 2.0, and WMA. Support for MMAPI is optional. This helps nail things down for developers; on a JTWI device, the developer has a clear understanding of what APIs will be available. The following figure shows a JSR 185 stack:
JSR 185 Stack
Wireless Java technology is the intersection of two vast worlds, wireless data communications and the Java platform. Wireless Java technology spans parts of Java Card, Java ME, Java SE, and Java EE. That said, some common misconceptions about wireless Java technology need clearing up:
For other perspectives on wireless Java technology, select:
The Java platform is an excellent choice for wireless development for many reasons. Here are three compelling advantages:
A second benefit of portability is the ease of delivering applications to a device over the wireless network (sometimes called Over-the-air, or OTA, provisioning). Binary applications can be moved from a server onto a device, too, but not safely. Because Java code runs inside the Java Virtual Machine 1 , code that is downloaded from the network can be run safely. Binary code cannot be contained at execution time and is much less safe.
The market for wireless applications and services is huge. This market can be divided into two segments:
Perhaps the best next step toward getting a good grip on wireless Java technology is to create some:
1 As used in this document, the terms "Java virtual machine" or "JVM" mean a virtual machine for the Java platform.