Im having some throuble simply just throwing a msmq message into a Queue on a remote computer....maybee i got the syntax mixed up or something..
Not sure im totally correct here but this should work under a button in a form right? (assuming i have a XML loaded in the XMLDoc)
it's a Public Queue called fromNavision on the comuter REMOTESERVER where everyone has full control.
As far a i know all ports etc. are open between the sending conouter and REMOTESERVER.
CREATE(MQBus);
CREATE(Cc2);
Cc2.AddBusAdapter(MQBus,1);
MQBus.OpenWriteQueue('REMOTESERVER\fromNavision',0,0);
OutMsg := Cc2.CreateoutMessage('Message [url=queue://REMOTESERVER]queue://REMOTESERVER[/url]\fromNavision');
OutS := OutMsg.GetStream;
XMLDoc.save(OutS);
OutMsg.Send(0);
Anyway ...it gives me a funny error saying "Automation Server Error returned HRESULT -2147352567 when trying OpenWriteQueue...
If anyone could help out I would be most greatful:-)
0
Comments
RIS Plus, LLC
I really hope its not so that hte Client machnie calling must have MSMQ installed in order for it to work.....
RIS Plus, LLC
On the Server where I want the Messages Drop in MSMQ I have MSMQ Common installed (Windows 2003 Server SP1). No AD Integration.
Funny is that if I Install Naivison Client & SDK on the server with the MSMQ installed and run my form or codeunit with the code from this machine it works nicely and messages drop in the Local Queue.
for using MSMQ you have to have installed MSMQ on the machine where you want to use MSMQ.
Why?
Because MSMQ is creating a temporary so called outgoing queue.
HTH,
Rainer
By the way, Google is not returning anything on the number you specified, are you sure that is the right number? Usually you get a number of posts when you copy the error number to google.
RIS Plus, LLC
Thanks for all the superfast input!
I Agree, I also thought that the Adapter actually had some built in functionallity towards MSMQ...
So what Reiner says makes sense, but i sure hope its not like that, cause what i want is that the clients direct, (No not the naivsion way to drop in some temp table and let NAS doing it,I need instant reply) drop to MSMQ, but the clients are in a Citrix Environment and there is a lot of them....so getting another thing installed in the Citrix Farm like MSMQ Common would be abit troublesome, but i guess i have to try... ](*,) :shock:
But it's comming from Navisions Automation Object the MSMQBusAdapter so i guess its not a all super defined normal error number :-)
This number I can produce Anytime!, OS please let me know if you need me to repeat it! \:D/
Sounds like trouble.