Before you start
This tutorial is the final installment of a three-part series about developing applications with Amazon Web Services. In the first installment, "How to use the Amazon E-Commerce Service" (developerWorks, June 2005), you learned how AWS exposes raw product information and key parts of Amazon's technology to developers for use in their applications. In Part 2, "Introduction to the Amazon Simple Queue Service" (developerWorks, September 2005), you discovered how to implement a Web service using Amazon SQS. In this tutorial, you learn how to call SQS from Java ME.
This tutorial demonstrates how to access Amazon SQS from a Java ME-enabled device running the Mobile Information Device Profile (MIDP). SQS allows third-party developers to build distributed applications that take advantage of Amazon's computing infrastructure to reliably deliver messages between application components. Because access to SQS is through HTTP, you can also use the service as a message exchange point for MIDP devices, as demonstrated by the simple instant messaging application you develop in this tutorial.
This tutorial is written primarily for Java developers who are looking to build Java ME-based applications that use SQS. A basic knowledge of how SQS works is required, and to that end, I recommend completing Part 2 in this series before beginning this one. An understanding of Java ME — particularly the MIDP — is also required.
To use Amazon SQS, you must register with Amazon.com to obtain an AWS Access Key ID. If you don't already have one, refer to Part 2 in this series for information on getting one.
To run the code in this tutorial, you need a Java ME development platform. The code has been tested and developed with Sun Microsystems' J2ME Wireless Toolkit, version 2.2.
To run the examples in this tutorial, you need a computer running Microsoft® Windows® XP and the following components:




