Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB6 MSMQ
Background: I'm an MSMQ novice and am having to support some legacy VB6 windows services; one on MachineA which sends SQL insert statements to a transactional public queue on MachineB, and another service on MachineB which consumes the messages.
 
We had one queue set up and working just fine, then I was asked to create another queue to handle different messages. The service on MachineA has run-time config options to specify the queue to send to, so this was set up in the config and the service created the outgoing queue.
 
At this point the public queue did not exist on MachineB, but once this was manually created I was expecting to see messages to start appearing in it, but none have.
 
I thought it might be permission but the code below is used to instantiate the queue object in code:
 
Set oMSMQueue = oMSMQQueueInfo.Open(MQ_SEND_ACCESS, MQ_DENY_NONE)
 
...MQ_DENY_NONE meaning that the queue is available to anyone.
 
From perfmon counters on MAchineB IO can see that under the MSMQ session the number of messages is building up, but nothing in the queue itself.
 
Also there is nothing in any of the dead-letter queues.
 
Is it as simple as I should have created the receiving queue first?
 
Thanks
Posted 27-Sep-12 6:30am
atamata389

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 384
1 Maciej Los 290
2 Sergey Alexandrovich Kryukov 230
3 CPallini 170
4 Shweta N Mishra 165
0 OriginalGriff 7,760
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,785


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100