Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Boost application development with Amazon Web Services, Part 3: Amazon Simple Queue Service

Using Web services from Java ME

Eric Giguere (ericgiguere@ericgiguere.com), Software Developer, Studio B
Eric Giguere is a software developer and author who has written numerous articles and several books on a variety of programming topics. You can find out more about Eric and his writings at Synclastic.com.

Summary:  Using the Amazon Simple Queue Service (SQS), you can build distributed applications that communicate using a message-based paradigm. Cell phones and other Java™ Platform, Micro Edition (Java ME) devices can use Amazon SQS easily with simple HTTP requests. In this tutorial, the third in a series on creating applications with Amazon Web Services (AWS), discover how to use SQS from a Java ME device.

View more content in this series

Date:  11 Jul 2007
Level:  Intermediate PDF:  A4 and Letter (63 KB | 15 pages)Get Adobe® Reader®

Activity:  10364 views
Comments:  

Before you start

About this series

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.

About this tutorial

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.


Prerequisites

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.

System requirements

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:

1 of 7 | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=SOA and Web services, Java technology
ArticleID=239826
TutorialTitle=Boost application development with Amazon Web Services, Part 3: Amazon Simple Queue Service
publish-date=07112007
author1-email=ericgiguere@ericgiguere.com
author1-email-cc=