8.7 Testing your pervasive application


8.7 Testing your pervasive application

This section provides information about testing the sample application. We can do this job in two different ways.

In the first case, we are using the cell phone emulator with Java support. After you finish with the code and deployment descriptor, you can test your application with WebSphere Studio Device Developer Debug. To do this, press F11 inside the IDE environment and this tool will show the emulator.

If you follow all the steps properly, you will see a window as shown in Figure 8-18 on page 192.

click to expand
Figure 8-18: WAP device simulator

You can also run the same application on a Palm device. This is a test outside of the device developer. The deployment descriptor generates the file to import in Palm OS.

You can download a simulator from the PalmOS Web site ( http://www.palmos.com ) then you have to install the Java Runtime Environment for J2ME to run this application.

In order to install the Java Runtime Environment, you should open the Palm simulator; right-click the Palm screen, choose the Install application/database option and select the following files:

  • <WSDD_home>\wsdd5.0\ive\ runtimes \palmos\68k\ive\bin\cldc20.prc

  • <WSDD_Home>\wsdd5.0\ive\runtimes\palmos\68k\ive\bin\j9_vm_bundle.prc

  • <WSDD_home>\wsdd5.0\ive\runtimes\palmos\68k\ive\bin\j9pref.prc

  • <WSDD_home>\wsdd5.0\ive\runtimes\palmos\68k\ive\bin\midp20.prc

Important:  

WSDD_home is the folder where you have WebSphere Studio Device Developer installed.

After this, you can install the sample application in the same way that you have installed the JVM. For this device, you should install the .prc file. The deployment descriptor in this chapter generates the .prc file in <WSDD_home>\workspace\HelloMidletProject\palm68k\HelloMidletSuiteName. prc.

click to expand
Figure 8-19: Palm device simulator



Patterns. Pervasive Portals
Patterns: Pervasive Portals Patterns for E-Business Series
ISBN: 0738427772
EAN: 2147483647
Year: 2002
Pages: 83
Authors: IBM Redbooks

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net