473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Please Help - Message Queue

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

--
Be Cool!
Jul 21 '05 #1
2 1500

"thejackofall" <th**********@discussions.microsoft.com> wrote in message
news:D9**********************************@microsof t.com...
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
Jul 21 '05 #2
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

"David Browne" wrote:

"thejackofall" <th**********@discussions.microsoft.com> wrote in message
news:D9**********************************@microsof t.com...
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

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Chris | last post by:
Hi, I have MSMQ installed on my domain controller (Win 2003) and on my XP client (developer box). I created a private queue under private queues. I am able to write messages to the queue like ...
8
by: Brian Keating EI9FXB | last post by:
Would I be correct in saying that the only way to get a user message into a Windows form would be to use P/Invoke with Message? Of is there some part of the .NET API that I am totally un aware...
6
by: Zach | last post by:
Could someone please explain what the consequence of this //****** line is? public void SecondThread() { lock(m_smplQueue) { Monitor.Pulse(m_smplQueue);...
5
by: ukjock | last post by:
Hi guys and Gals I need some serious help please. I can not get my head around this problem. At work we have a BBC Acorn computer (yep, I know what yer thinking), and for the past month I have...
2
by: thejackofall | last post by:
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...
22
by: KitKat | last post by:
I need to get this to go to each folders: Cam 1, Cam 2, Cam 4, Cam 6, Cam 7, and Cam 8. Well it does that but it also needs to change the file name to the same folder where the file is being...
10
by: Bishman | last post by:
Hi, I have a form application that needs to query a DB at a set timed interval and then refresh the form with values received from the DB. Simple enough. My design releated questions are .......
2
by: winston | last post by:
I wrote a Python program (103 lines, below) to download developer data from SourceForge for research about social networks. Please critique the code and let me know how to improve it. An...
2
by: bernd | last post by:
Hi netties, posted this in a different group already, which seems to be inappropriate. I create a message queue with msgget(), sent a 5-byte message to it with msgsnd() and try to receive the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.