Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0

Get PDF Book Print View

Document Information

Getting Started

Java ME Platform SDK Features

Using Sample Projects

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Monitoring Network Traffic

Using the Network Monitor

Filtering Messages

Sorting Messages

Saving and Loading Network Monitor Information

Clearing the Message Tree

Lightweight UI Toolkit

Security and MIDlet Signing

BD-J Support

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator

On-device Debugging

Command Line Reference

Logs

JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSRs 184, 226, and 239: Graphics Capabilities

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 238: Mobile Internationalization API (MIA)

JSR 229: Payment API Support

JSR 256: Mobile Sensor API Support

Index

Using the Network Monitor

Follow these steps to monitor network traffic:

  1. In the Device Selector window, right-click on a device and choose Properties.

  2. Check the Enable Network Monitor option. When you next run an application on the device, the network monitor opens.

    You can also edit the device.properties file to set netmon.enabled to true. The properties file is located in the device instance directory, as described in /javame-sdk/3.0/work.

  3. Start your application.

    When the application makes any type of network connection, information about the connection is captured and displayed.

    network monitor showing sockets, http and datagrams

    The top frame displays a list of messages. Click a message to display its details in the bottom frame.

    In the Hex View, message bodies are shown as raw hexadecimal values with the equivalent text.


    Note - You can examine messages that are still in the process of being sent. Incomplete messages are indicated by bold highlighting in the message tree.


See also: Filtering Messages, Sorting Messages, Saving and Loading Network Monitor Information, Clearing the Message Tree