Contents Previous Next Index

Chapter   8

Testing Application Provisioning


The MIDP 2.0 specification includes the document, "Over The Air User Initiated Provisioning Specification," which describes how MIDlet suites can be deployed over-the-air (OTA), and the functions that a device should provide to support such deployments. See http://java.sun.com/products/midp for the MIDP specification. For information on OTA provisioning in the Wireless Toolkit, see Chapter 2, “Developing and Running Applications.”

The MIDP implementation of the J2ME Wireless Toolkit’s default Emulator emulates the device behavior during the provisioning process. You can use this functionality to test and demonstrate the full provisioning process of MIDlet suites from the server to the device. This chapter explains the steps that are required to perform this process.

Deploying Applications on a Web Server

To deploy a packaged MIDP application remotely on a Web server:

  1. Change the JAD file’s MIDlet-Jar-URL property to the URL of the JAR file.
  2. The URL must be an absolute path. For example:

    
    MIDlet-Jar-URL: http://mumble.java.sun.com/midlets/example.jar 
    
    
  3. Ensure that the Web server recognizes JAD and JAR files:
    1. For the JAD file type, set the file extension to .jad and the MIME type to
      text/vnd.sun.j2me.app-descriptor.
    2. For the JAR file type, set the file extension to .jar and the MIME type to application/java-archive.

The details of how to configure a Web server depend on the specific software used.

Deploying Applications Remotely

J2ME-enabled devices include an Application Management System (AMS) for downloading, installing, and configuring J2ME applications. The Emulator has an example AMS that you can use to demonstrate how a user would obtain and manage your application. The example AMS supports network delivery of applications, according to the recommended practice for MIDP (see “Over The Air User Initiated Specification” in the MIDP 2.0 specification for a description of recommended practices).

You can use the AMS in one of the following ways:


Note – You can emulate running in OTA provisioning mode within the Wireless Toolkit environment. For more information, see Chapter 2, “Developing and Running Applications.”

 


Contents Previous Next Index User's Guide
Java™ 2 Platform, Micro Edition, Wireless Toolkit, Version 2.1