Please Help - Message Queue

G

Guest

Hi

I have a MSMQ message queue in a Windows Service. When a message arrives in
the queue locally, an event is generated and the event handler handles it.
However, if a message arrives in the queue from another machine, the event is
not generated. Thus, the event handler isn't executed.

I checked the properties and gave "everyone" the permissions to receive and
everything else.

Your input is appreciated.

J
 
D

David Browne

thejackofall said:
Hi

I have a MSMQ message queue in a Windows Service. When a message arrives
in
the queue locally, an event is generated and the event handler handles it.
However, if a message arrives in the queue from another machine, the event
is
not generated. Thus, the event handler isn't executed.

I checked the properties and gave "everyone" the permissions to receive
and
everything else.

Don't use events for MSMQ. Instead spawn a thread and have it loop on a
blocking read of the queue. In my experience this is much simpler and more
reliable.

David
 
G

Guest

David,

Thanks for the input. I may just take your advice after I take care of this
problem. I don't have too much time for changes right now.

I really would like to know why the event is generated when a message comes
locally, but not when it comes from another computer.

Could this be a permission problem or something related?

J
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top