Τετάρτη, 5 Ιανουαρίου 2011

Amazon SQS sample java file

The SimpleQueueServiceSample.java file is a sample java file for accessing the following SQS operations

  • createQueue
  • listQueues
  • sendMessage
  • receiveMessage
  • deleteMessage
  • deleteQueue
SimpleQueueServiceSample.java can be viewed here


https://docs.google.com/document/pub?id=1CEHTnyziGiVicf0mLkcjOweDa2ZrLEd5UeNauEB_60k



copy and paste the code into a file named SimpleQueueServiceSample.java under a package named amazonpack.

In order to run the SampleS3 java class you should include in your classpath the following jars

aws-java-sdk-1.1.1.jar
aws-java-sdk-1.1.1-javadoc.jar
aws-java-sdk-1.1.1-sources.jar
commons-codec-1.3.jar
commons-discovery-0.2.jar
commons-httpclient-3.0.1.jar
commons-logging.jar
commons-logging-1.1.1.jar

These can be found on AWS SDK for Java that can be downloaded from here

http://aws.amazon.com/eclipse/

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου