how to receive the message from a Remote one

ajaybabuCh
ajaybabuCh Member Posts: 208
Hi

I have a server called BLUE where my SQL server resides.

I created a private queue in blue called "toNavision".

from my system , NAS will connect to SQL db server that is BLUE.

its all done.

but the problem is I couldn't receive the message .

I wrote like this


MQBus.OpenReceiveQueue('.\private$\vertiklsnavision',0,0);

but its not working

can anybody have idea on this

ajay
Ajay

Comments

  • kine
    kine Member Posts: 12,562
    from my system , NAS will connect to SQL db server that is BLUE.
    It means, that NAS is running on another server than BLUE? If yes, than
    MQBus.OpenReceiveQueue('.\private$\vertiklsnavision',0,0); 
    
    is opening queue on the local server (the ".\" part of the path), but the queue is on BLUE server...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ajaybabuCh
    ajaybabuCh Member Posts: 208
    Yes Kine

    Queue is on BLUE server and the Navision SQL DB is also on the BLUE

    server.

    NAS is running on my Desktop.

    Even I tried the following

    MQBus.OpenReceiveQueue('BLUE\private$\vertiklsnavision',0,0);

    its not working and i couldn't send the message from Navision also to the

    queue on the blue server

    ajay
    Ajay
  • kine
    kine Member Posts: 12,562
    I am not sure, but somewhere I saw that the NAS component is working just with local queues (I am not sure if it was reading or writing). It means, you need to create the queue on PC with NAS and write into it from the BLUE server... To be able to create the queue on your desktop, you need to enable the MSMQ component in Win XP (if you have Win XP).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.