Skip to main content
Known Participant
Jun 6, 2023 12:25 PM UTC
Question

Coldfusion Azure Service Bus receive message

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 is closed to new replies. Start a new post to keep the conversation going.

    8 replies

    Charlie Arehart
    Community Expert
    Community Expert
    Jun 10, 2023 12:31 PM UTC

    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? 

    Translate
    /Charlie (troubleshooter, carehart. org)
    Known Participant
    Jun 12, 2023 8:33 AM UTC

    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.

     

    Translate
    Thanks,Souvik
    Community Expert
    Jun 9, 2023 6:41 PM UTC

    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 

    Translate
    Dave Watts, Eidolon LLC
    Known Participant
    Jun 10, 2023 7:21 AM UTC
    Thanks,Souvik
    Community Expert
    Jun 10, 2023 11:40 AM UTC

    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 

    Translate
    Dave Watts, Eidolon LLC