ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button

Are Device Independent Wireless Internet Applications Possible?
Pages: 1, 2

Carriers and Consumers drive the End of the Proprietary Wireless Internet

A proprietary wireless Internet is no more viable than the failed attempt by vendors to keep the wireline Internet proprietary. It is not in the interest of the consumer, nor the carrier, to have any barriers to adoption of new content and applications. If content and applications are not accessible, then there are precious few business models that are viable. Application and content developers are compensated for their applications, and they require the widest audience of end users in order to maximize their financial gains from their investment in. Carriers themselves generate annuity revenue via the provisioning of packets and airtime minutes, and if applications are inaccessible, airtime and packet revenue is lost.

Detailing the apparent absence of annuity revenue for device manufacturers is beyond the scope of this article, but certainly a compelling question to ask, since application developers, as shown by i-mode, receive annuity streams monthly from their visitors and carriers receive month annuity streams from their subscribers.

In the current situation, where consumers purchase devices via carriers to use voice and Internet applications, and carriers thrive on the provisioning of these services, the manufacturers of devices are faced with no little choice. If manufacturers persist in proprietary technology implementations on their devices, carriers will not sell those devices (and since carriers are the only true vendors of these devices, since a device with no network does not meaningfully function, device manufacturers have little choice).



Thus, the proprietary implementations of WAP and i-mode were not viable from the outset, and with the release of the new WAP 2.0 and i-mode 3.0 specifications, dramatic steps have been taken by both organizations to better follow the successful path of the wireline Internet. Specifically, both WAP 2.0 and i-mode 3.0 have adopted the XHTML 1.0 standard as the foundation of their upgraded platforms (targeted for release in the third quarter of 2001).

This migration to XHTML is both a realization of the inevitable as well as a technologically brilliant choice. XHTML is an XML re-implementation of HTML. Since it's an XML language, it's easy for developers to extend, to program to, and for tools vendors to support and automate. As the successor to HTML 4.0, which all PC browsers support today, XHTML is or will be the de facto presentation technology for all new PC applications. Thus one standard presentation technology will provide comprehensive support for every network, for every carrier, for every developer. In the very near future, only the form factor (the size of the mobile device's screen) will determine the difference in the presentation delivered to phones, PDAs, and PCs.

See http://www.jdom.org, http://zeus.enhydra.org, http://kxml.enhydra.org for details. Sun is incorporating JDOM as part of Merlin, the Sun Java Development Kit (JDK) 1.4, and redistributes the kXML parser on their Sun Wireless CD.

But where does this leave Java and devices? Since Java presentation isn't a markup language, but rather Java code, Java devices cannot make use of the XHTML standard for their presentation capabilities. However, the evolution of Java/XML binding specifications, currently driven via open source projects such as JDOM, Zeus, and kXML, provide a clear and easy mechanism for Java client devices to request the exact same XHTML stream that a PC browser requests, and parse it locally on the device for presentation to the J2ME client (frequently called a MIDlet).

Just as the specifications for wireline and wireless presentation technologies have converged on open source standards, so too in parallel have open source infrastructure projects evolved to implement these standards. Thus, while the W3C has provided a home for XHTML and other XML standards like VoiceXML, so too have open source implementation projects at Apache.org and Enhydra.org begun to implement these standards for developers to employ.

The infrastructure of a wireless or wireline implementation is generally made up of 5 components:

  • Hardware (Intel, SPARC, PA-RISC, etc. based computers)
  • Operating System (Linux, Windows NT, Solaris, HP-UX, etc.)
  • SQL Relational Database Server (PostgreSQL, Oracle, Microsoft SQL Server)
  • Application Server (Enhydra/XMLC, BEA WebLogic, Microsoft .NET)
  • Web Server (Apache, Microsoft IIS, Netscape)

It is currently unlikely that the first of these will be offered freely to the world, although it is clearly the strategy of companies like Intel and AMD to commoditize the hardware platforms and force their way into datacenters and enterprises.

However, next on the hardware stack required for Internet applications is a multi-threaded operating system. With Linux 2.4, Windows NT 2000, and the family of UNIX operating systems, developers are free to choose among operating systems. At this level open source offers a compelling alternative to commercial operating systems, and even Sun has begun to open source some of the Solaris operating system in response to the growth and adoption of Linux. And with 60% of all web servers now running Apache, open source is the dominant solution for this tier of the stack. Indeed, IBM has adopted Apache as its software product and resells it under its own brand to customers.

The database tier is a place where open source is struggling to demonstrate its viability. Fear, uncertainty, and doubt about performance, stability, and maturity of open source database implementations have hampered their widespread adoption within enterprise applications. Increasingly, PostgreSQL is emerging as a viable departmental SQL database, although its portability to operating systems other than Linux remains to be seen.

Finally, at the application server level, developers have one of two architectures to consider: the proprietary Microsoft .NET implementation, currently still in development, and the Java 2 Enterprise Edition (J2EE). Currently, J2EE is the dominant platform for enterprise applications and is the foundation of all ERP solutions from Oracle and PeopleSoft, as well as many other enterprise application companies. Due to the open nature of J2EE, and the ability of any firm to implement it, open source projects implementing the J2EE abound, with early market leadership going to the Enhydra project.

Lutris Technologies, with support from developers in more than 50 countries, contributes to the open source Enhydra application server. Primary project sponsors include France Telecom and BullSoft/Evidian. Lutris brings a very practical business approach to the implementation and development process. Many wireless projects employ Enhydra for multi-device, multi-protocol application development, including an open source XML engine called Enhydra XMLC.

Enhydra XMLC was first launched in the open source community in April 1999 with the goal of reducing programmer-designer interdependency. Its features reflect two waves of evolution. Initially, XMLC was designed as an alternative to JSP to allow nontechnical designers and Java developers to work independently in optimizing user interfaces for PC browsers, freeing designers to use their preferred tools such as Macromedia. Then, Enhydra XMLC was improved by input from the Enhydra development community and the open source process. During that phase, David Li of DigitalSesame in Taiwan and others worked with Lutris developers to expand XMLC's support for page development from HTML to its current support of all wireless markup languages (WML, cHTML, and XHTML). Lutris has also worked with Sun to enhance Enhydra XMLC support for VoiceXML and J2ME. A new subproject in the Enhydra community focuses on XML parsers for the J2ME platform, called kXML. Concurrent with this innovation in the open source community, Motorola iDEN recently announced that Enhydra, XMLC, and kXML would be the development platform for their new J2ME phones, demonstrating that the premier USA provider of handset technology understands the value of open source implementations and the open source development methodology.

How Enhydra XMLC Works

Enhydra XMLC is a Java technology that eliminates the need to include Java code in web pages (regardless of whether those pages are HTML, cHTML, WML, XHTML, VoiceXML or arbitrary XML for J2ME and Flash clients). It uses a W3C standard, cascading style sheet ID attributes, to identify areas of dynamically delivered content, and to associate each area with the Java method that will deliver its content.

The XMLC compiler reads HTML, WML, or *ML template files to generate two types of output. The first is a Document Object Model tree (DOM) using one of the included XML parsers, like the Apache Xerces XML parser. The DOM tree is a Java class, representing the XML page as a hierarchical data structure. A programmer can now introduce code into his or her application that uses the Java DOM library to manipulate the tree. When the tree manipulation is complete, the DOM is converted back to HTML and streamed to the client by the writeDOM method. Enhydra XMLC recently added lazy DOM support to enhance performance and reduce the DOM memory footprint.

Secondly, Enhydra XMLC generates convenient setter and getter methods that are created as the compiler detects ID attributes. These methods relieve the developer of the need to add logic for traversing the generated DOM to find the node in question. The name associated with the ID is used to create the method name.

Designers can leave mocked-up data, such as "John Doe," in the HTML page. That's a huge benefit for designers because they can use the same document for both the mocked-up storyboards of a web presentation and the production development environment. The XMLC engine can be instructed to remove mocked-up data by referencing the class name.

As XHTML becomes the dominant presentation technology for all devices, the design community and the developer community have an easy means of targeting all mark up languages. Additionally, as mentioned above, J2ME client developers benefit from XHTML and XMLC to easily send XML data down to the Java device, which then parses the stream using the kXML parser.

Open Source and XML have no Vendor Lock In

As a pure Java implementation, developers can use Apache, PostgreSQL, Enhydra, Enhydra XMLC, kXML, and XHTML with any standard Java application server, including BEA WebLogic and IBM WebSphere, and indeed even with non-Java application servers, such as ones written in Python or Perl. In this manner, open source implementations and open standards actually bring to the wireless Internet the exact commodity nature of the wireline Internet that's made it so ubiquitous.

As of this writing, Nokia just launched an XHTML initiative for their new handsets, Motorola just launched their new J2ME handsets, and RIM and Palm have just provided developers with Beta SDKs for their J2ME implementations. Ironically, the only application server available today with full support for J2ME and XHTML is from the open source community. Open source and open standards continue to tear down the proprietary walls that inhibit the adoption of a wireless Internet.

Keith Bigelow is an expert Java and XML developer, trainer and lecturer focused on wireless issues and applications.


Return to ONJava.com.