MSMQ and IP Address

MTC
Member Posts: 159
Hi,
I have a project that involves MSMQ messages and NAS. Now, as I've never used MSMQ messages before, I have been doing several tests using two Navision clients, each running a form. One is acting like the NAS, the other as whatever external application. Both are running on the same machine.
Now, this is the problem. Everything works fine when I am using the name of the machine to identify the queue to which I want to send the message. However, when I change this to the IP address (remember it's the IP address of my machine) the message never gets received by the form acting as a server.
Works
Doesn't work:
Does anyone have a clue as to why this might be? As I've said, I've never done this before, so the problem could be something very simple and very silly.
I have a project that involves MSMQ messages and NAS. Now, as I've never used MSMQ messages before, I have been doing several tests using two Navision clients, each running a form. One is acting like the NAS, the other as whatever external application. Both are running on the same machine.
Now, this is the problem. Everything works fine when I am using the name of the machine to identify the queue to which I want to send the message. However, when I change this to the IP address (remember it's the IP address of my machine) the message never gets received by the form acting as a server.
Works
OutMsg := CC2.CreateoutMessage('Message queue://mymachine\private$\ptoNavision');
Doesn't work:
OutMsg := CC2.CreateoutMessage('Message queue://192.168.1.xx\private$\ptoNavision');
Does anyone have a clue as to why this might be? As I've said, I've never done this before, so the problem could be something very simple and very silly.
0
Comments
-
Private queues are local to server and are not available to other servers. Private queues are not published in Active Directory. Convert it to a public queue.0
-
Thanks, but it makes no difference. The form acting as the server does not receive the message, and thus the form acting as the client times out on
ReturnMessage := OutMsg.SendWaitForReply(5000);
Yet works fine using the machine name.
Also, are public queues only available to systems in the same domain however? What if I wanted to send an MSMQ message outside of the domain?0 -
Yes you are right, I was checking old data
and you can use remote private queues.
The format for remote private queues is DIRECT=server\PRIVATE$\QueueName and not server\PRIVATE$\QueueName. If I’m not in mistake DIRECT keyword means to resolve queue without AD.
Don’t forget to assign correct permissions in message queue, or you won’t be able to write to queue.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions