Menu
Amazon Simple Queue Service
Developer Guide

Supported JMS 1.1 Implementations

The Amazon SQS Java Messaging Library supports the following JMS 1.1 implementations. For more information about the supported features and capabilities of the Amazon SQS Java Messaging Library, see the Amazon SQS FAQ.

Supported Common Interfaces

  • Connection

  • ConnectionFactory

  • Destination

  • Session

  • MessageConsumer

  • MessageProducer

Supported Message Types

  • ByteMessage

  • ObjectMessage

  • TextMessage

Supported Message Acknowledgment Modes

  • AUTO_ACKNOWLEDGE

  • CLIENT_ACKNOWLEDGE

  • DUPS_OK_ACKNOWLEDGE

  • UNORDERED_ACKNOWLEDGE

Note

The UNORDERED_ACKNOWLEDGE mode isn't part of the JMS 1.1 specification. This mode helps Amazon SQS allow a JMS client to explicitly acknowledge a message.

JMS-Defined Headers and Reserved Properties

For Sending Messages

When you send messages, you can set the following headers and properties for each message:

  • JMSXGroupID (required for FIFO queues, not allowed for standard queues)

  • JMS_SQS_DeduplicationId (optional for FIFO queues, not allowed for standard queues)

After you send messages, Amazon SQS sets the following headers and properties for each message:

  • JMSMessageID

  • JMS_SQS_SequenceNumber (only for FIFO queues)

For Receiving Messages

When you receive messages, Amazon SQS sets the following headers and properties for each message:

  • JMSDestination

  • JMSMessageID

  • JMSRedelivered

  • JMSXDeliveryCount

  • JMSXGroupID (only for FIFO queues)

  • JMS_SQS_DeduplicationId (only for FIFO queues)

  • JMS_SQS_SequenceNumber (only for FIFO queues)