Azure Service Bus Schedule a message broken?
I'm adding service bus integration using the azureservicebus package in ColdFusion 2023 update 16. I can send messages to a queue but I haven't been able to schedule a message for later processing. I've followed the documentation here https://helpx.adobe.com/coldfusion/using/integrate-coldfusion-azure-service-bus.html
I've copied the code sample from "Schedule a message" but I get an error every time: "coldfusion.runtime.java.MethodSelectionException: The scheduleMessageToQueue method was not found." Does this method exist in ColdFusion 2023?
Here's my simple example:
<cfscript>
credentialAlias = "AzureServiceBusCredential";
configAlias = "AzureServiceBusConfiguration";
sb = getCloudService(credentialAlias, configAlias);
testQueue = sb.createQueue("testQueue");
sendMessage = {
messageBody = "This is a test message",
messageProperties = {
contentType = "text/plain",
subject = "Test Message",
correlationId = createUUID()
}
}
// This works
sendResponse = testQueue.sendMessage(sendMessage);
myQueue = sb.createQueue("q_006");
schedMessage = {
"messageId" = "001",
"messageBody" = "message body",
"ScheduledEnqueueTimeUtc" = dateAdd("n", 10, now())
}
try {
// this errors with "The scheduleMessageToQueue method was not found."
scheduleResponse = sb.scheduleMessageToQueue(myQueue, schedMessage)
} catch (any e) {
writeLog(file = "azureErrors", text = e, type="Error");
}
</cfscript>
