Msqm

ta5ta5 Member Posts: 1,164
edited 2005-05-03 in Navision Attain
Hi
I read quite a few articles on this board concerning MSMQ. However, I have some unsolved questions on that.

1) Is it possible to have a form open (for testing purpuses only) waiting for the CC2:MessageReveived event as mentioned in
http://www.mibuso.com/forum/viewtopic.php?t=4185

2) I tried to make it work as described in 1), and also with the single instance codeunit. No success both ways. The message is in the queue, but the event does not fire in navision. Must this codeunit be run from NAS?

Thanks in advance
Thomas

Comments

  • SteveOSteveO Member Posts: 164
    wtr Navision not picking up the message: the label of the message must be Navision MSMQ-BA

    If it is not set to that then Navision ignores it.
    This isn't a signature, I type this at the bottom of every message
  • ta5ta5 Member Posts: 1,164
    Hi Steve
    Thank you. It works now, as far as the message is picked up. Unfortunately, the Stream seems to be empty.
    Any suggestions for that?
    Thank you in advance.
    Thomas
  • ta5ta5 Member Posts: 1,164
    Hi
    It works now ;--) I had to transform the message to ansi before sending it to the mq. arMessageBody is a ByteArray.
    ..
    [from excel]
    arMessageBody = StrConv(varMessageBody, vbFromUnicode)
    msg.Body = arMessageBody
    ..

    I have now an excel client to send some test messages to the mq, picked up from Navision.
Sign In or Register to comment.