need help about MSMQ

subhaster
Member Posts: 64
Hi everyone.....
this is a problem regarding retreieving messages from MSMQ . Firstly to receive messages from MSMQ , do we necessarily need the NAS running ? I mean has NAS got anything to do with MSMQing ?
Secondly, I have made a single instane codeunit called "Receive Xml" where I have written :-
OnRun()
CREATE(MQBus);
CREATE(ComCom);
MQBus.OpenReceiveQueue('.\Private$\MyQueue',0,0);
ComCom.AddBusAdapter(MQBus,1);
InsertMSMQXML(xmlItemNode : Automation "'Microsoft XML, v3.0'.IXMLDOMNode")
IF MSMQTestData.FIND('+') THEN
vIntNo:=MSMQTestData."Entry No."
ELSE vIntNo:=0;
MSMQTestData.INIT;
MSMQTestData."Entry No." := vIntNo + 1;
MSMQTestData.TextValue := xmlItemNode.firstChild.firstChild.nodeValue;
MSMQTestData.INSERT;
ComCom::MessageReceived(VAR InMessage : Automation "''.IDISPATCH")
InMsg := InMessage;
Instr := InMsg.GetStream;
CREATE(XmlDom);
XmlDom.load(Instr);
XmlDom.save('C:\');
MESSAGE('Message Successfully stored');
InsertMSMQXML(XmlDom.documentElement);
where MSMQTestData is a table with following fields :-
I. Entry No. : data type : integer
II.TextValue : data type : Text.
Unfortunately nothing is happening when I am running the codeunit .
Even the Queue that I have created (MyQueue) is a non-transactional one.
Please suggest me any probable solution what is wrong with code ?
this is a problem regarding retreieving messages from MSMQ . Firstly to receive messages from MSMQ , do we necessarily need the NAS running ? I mean has NAS got anything to do with MSMQing ?
Secondly, I have made a single instane codeunit called "Receive Xml" where I have written :-
OnRun()
CREATE(MQBus);
CREATE(ComCom);
MQBus.OpenReceiveQueue('.\Private$\MyQueue',0,0);
ComCom.AddBusAdapter(MQBus,1);
InsertMSMQXML(xmlItemNode : Automation "'Microsoft XML, v3.0'.IXMLDOMNode")
IF MSMQTestData.FIND('+') THEN
vIntNo:=MSMQTestData."Entry No."
ELSE vIntNo:=0;
MSMQTestData.INIT;
MSMQTestData."Entry No." := vIntNo + 1;
MSMQTestData.TextValue := xmlItemNode.firstChild.firstChild.nodeValue;
MSMQTestData.INSERT;
ComCom::MessageReceived(VAR InMessage : Automation "''.IDISPATCH")
InMsg := InMessage;
Instr := InMsg.GetStream;
CREATE(XmlDom);
XmlDom.load(Instr);
XmlDom.save('C:\');
MESSAGE('Message Successfully stored');
InsertMSMQXML(XmlDom.documentElement);
where MSMQTestData is a table with following fields :-
I. Entry No. : data type : integer
II.TextValue : data type : Text.
Unfortunately nothing is happening when I am running the codeunit .
Even the Queue that I have created (MyQueue) is a non-transactional one.
Please suggest me any probable solution what is wrong with code ?
Subhasish Chakraborty,
Systems Analyst,
MBS Dynamics.
Systems Analyst,
MBS Dynamics.
0
Comments
-
Maybe this topic can help you:
http://www.mibuso.com/forum/viewtopic.php?t=5645The bus adapter will only pick up messages with this label: Quote:
Navision MSMQ-BA0
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