Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

how to call azure service bus queue queueService.peekMessages()?

$
0
0

I tried to follow this http://www.windowsazure.com/en-us/documentation/articles/storage-nodejs-how-to-use-queues/

My code:-

var AZURE = require('azure');functionTestQueue(QueueName){var queueService = AZURE.createQueueService();// error occurred at this line 
    queueService.createQueueIfNotExists(QueueName,function(error){if(!error){
            console.log("ok");
            RESPONSE.send(200,{Message:"ok",Status:"ok"});}else{
            console.log("error: "+error);
            RESPONSE.send(200,{Message:"error",Status:"error"});}});}

Error message:-

Error message:-

NoMatchError: The provided settings {"blobendpoint":"https://undefined.blob.core.windows.net","tableendpoint":"https://undefined.table.core.windows.net","queueendpoint":"https://undefined.queue.core.windows.net"} are not complete.

Note that there are azure storage queue and azure service bus queue. I need service bus queue. So that I could call queueService.peekMessages(). My goal is to get a queue message without deleting the message from queue.

I ask same question in another thread @ Error when call azure.createQueueService() it was mixed up with 2 different queue stuff. Eventually I didn't get my answer. Wish to get a answer this time. Thanks in advance!


Do it now! - Today will be yesterday tomorrow MadSum


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>