Java Reference
In-Depth Information
F IGURE 5.5
The response of the registration procedure.
In order for this mechanism to work, a servlet is needed for handling the server side. The
servlet is presented in this same chapter, in the J2EE section, as an example of J2EE deploy-
ment.
The interesting piece here is the MIDLicenseManager class, reported in Listing 5.4.
L ISTING 5.4 The MIDLicenseManager Class
package com.marinilli.b2.c5;
import javax.microedition.io.*;
import javax.microedition.midlet.*;
import javax.microedition.rms.*;
import javax.microedition.lcdui.*;
import java.io.*;
/**
* Chapter 5 - A General Purpose, Simple License Manager
*
* @author Mauro Marinilli
* @version 1.0
*/
public class MIDLicenseManager implements CommandListener {
private RecordStore keyStore;
Search WWH ::




Custom Search