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 developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

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:  8065 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



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

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=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.