WebSphere MQ Telemetry Transport
Java Classes
Version 1.4.6
6 March, 2009
IA92
Property of IBM
ii
IA92
Take Note!
Before using this report be sure to read the general information under "Notices".
March 2009
iii
IA92
This edition applies to Version 1.4.6 of IA92 and to all subsequent releases and modifications unless
otherwise indicated in new editions.
© Copyright International Business Machines Corporation 2001, 2009. All rights reserved. Note
to US Government Users -- Documentation related to restricted rights -- Use, duplication or disclosure
is subject to restrictions set forth in GSA ADP Schedule contract with IBM Corp.
iv
IA92
Table of Contents
WebSphere MQ Telemetry Transport ...................................................................................................i
Java Classes..........................................................................................................................................i
Table of Contents..................................................................................................................................v
Notices ................................................................................................................................................ vii
Trademarks and service marks ......................................................................................................... vii
Summary of Amendments .................................................................................................................. viii
Preface .................................................................................................................................................. x
Chapter 1. Introduction ......................................................................................................................... xi
Chapter 2. MqttClient Java class and the programming model ........................................................... xii
Programming model .......................................................................................................................... xii
Persistence ................................................................................................................................... xii
Chapter 3. Com.ibm.mqtt.MqttClient.java ........................................................................................... xiv
Method documentation .................................................................................................................... xiv
Callback methods ............................................................................................................................ xiv
Registering a callback interface .................................................................................................... xiv
Diagnostics ....................................................................................................................................... xv
Exceptions .................................................................................................................................... xv
Trace ............................................................................................................................................. xv
Chapter 4. Using the sample applications .......................................................................................... xvi
J2SE sample .................................................................................................................................... xvi
Compiling and packaging ............................................................................................................. xvi
Navigating the user interface ........................................................................................................ xvi
Connection ................................................................................................................................ xvi
Subscriptions ........................................................................................................................... xvii
Publications .............................................................................................................................. xvii
J2ME MIDP ..................................................................................................................................... xvii
Compiling and packaging ............................................................................................................ xvii
WebSphere Studio Device Developer V5.6 ............................................................................. xviii
v