OpenBD Wiki

From OpenBD
Jump to: navigation, search

SqsSendMessage()

This function sends a single message to the queue. It will persist on the queue for a maximum of 4 days.

Amazon SQS

Contents

Parameters

sqsSendMessage( name, queueUrl, message )

  • name: name for this datasource, previously registered using AmazonSQS()
  • queueUrl: the url of the queue you wish to delete
  • message: the message body, in ASCII text, no more than 8KB in size

Returns

This function will return TRUE/FALSE

Example

<cfset AmazonSQS("testamz", "1WHJCG48Y89P4582", "bC6kfiW715mIenvtr537DcHndYmQwVf5l")>
<cfset myMessage= "This is a test message">
<cfset sqsSendMessage( "testamz", queueUrl, myMessage )>

Notes

A message must be in ASCII text and must not be more than 8192 bytes in length. Any CFML structure therefore must be JSON/WDDX encoded before calling this function.

Engine Compatibility

  • OpenBD
  • BlueDragon

Personal tools