OpenBD Wiki

From OpenBD
Jump to: navigation, search

SqsCreateQueue()

This function creates a new Amazon SQS queue. Every message is sent to a given queue waiting for processing. Messages will remain on the queue for a period of 4 days only.

Amazon SQS

Contents

Parameters

sqsCreateQueue( name, queuename )

  • name: name for this datasource, previously registered using AmazonSQS()
  • queuename: the name of the queue you want to create

Returns

This function will return the URL to the queue. This will be used as a parameter to many of the queue related functions. If a major error occurred it will throw a CFML exception that can be caught.

Example

<cfset AmazonSQS("testamz", "1WHJCG48Y89P4582", "bC6kfiW715mIenvtr537DcHndYmQwVf5l")>
<cfset queueUrl = sqsCreateQueue("testamz", "testQueue" )>
<cfset sqsDeleteQueue( "testamz", queueUrl )>

Notes

Messages only live in the queue for 4 days

Engine Compatibility

  • OpenBD
  • BlueDragon

Personal tools