Skip to main content
Known Participant
June 6, 2023
Question

Coldfusion Azure Service Bus receive message

  • June 6, 2023
  • 2 replies
  • 574 views

I have an application running on Coldfusion 2021. I want to use Azure Service Bus queue to send and receive messages.

I am unable to find proper documentation for receiving messages and processing them.

How can I achieve that?

 

    This topic has been closed for replies.

    2 replies

    Charlie Arehart
    Community Expert
    Community Expert
    June 10, 2023

    Souvik, you've pointed to the two primary resources offered by Adobe, both of which offer sample code for receiving messages/topics. What leads you to still ask for "proper documentation" to "achieve" that goal?

     

    Which example code did you try? What happened when it ran? If "nothing", then look to the second link (the full docs page) which if printed would be dozens of pages. Notice it offers diagnostic code, such as to browse queues and subscriptions.

     

    And as a starting point for understanding your situation, which of the 4 ways offered did you use to setup the configuration: the cf admin, the admin api, cfsetup, or code? And are you using any other means to watch what's going on in Azure, such as to know it has a topic of the sort you're trying to read? 

    /Charlie (troubleshooter, carehart. org)
    Known Participant
    June 12, 2023

    Hi Charlie,

     

    I am using the code configuration. I am using the queue.

    In a cfm file, I added the code for receiving the queue details. When I run this page, I get queue details.

    But I want to receive the queue details asynchronously when the service bus sends it.

    How can I achieve that?

    I am following https://coldfusion.adobe.com/2020/12/azure-service-bus-queues-introduction/ this reference.

     

    Thanks,Souvik
    Community Expert
    June 9, 2023

    Azure Service Bus doesn't directly support CFML, but it does support Java and JMS. Have you read the documentation and tutorials for those?

     

    https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-java-how-to-use-queues?tabs=passwordless

     

    Dave Watts, Eidolon LLC 

    Dave Watts, Eidolon LLC
    Known Participant
    June 10, 2023
    Community Expert
    June 10, 2023

    I didn't know the latest version of ColdFusion supported Azure Service Bus directly. Thanks for letting me know! I'm less sure about your original question in that case. Are you just asking about receiving messages? That should happen automatically if they're sent to the appropriate topic etc. To see it at work, you really need two applications using the service bus at the same time.

     

    Dave Watts, Eidolon LLC 

    Dave Watts, Eidolon LLC