Rejecting Network MSMQ messages

  • Thread starter Thread starter joker
  • Start date Start date
J

joker

Ok, I'm starting to pull my hair out on this one. It's probably
obvious, but not to me.

I have a CE device networked. I'm using MSMQ for inter-process
communications and I've set up private queues.

At times I want to be able to send messages from a development host.
This is working fine.

But, I also want to be able to ignore messages from the network for
security reasons. I can't figure out a way to tell msmq to ignore
these messages.

I tried changing the "UntrustedNetwork" setting from "Yes" to "No" and
back to "Yes", but I still receive the external messages.

I tried looking for some property in the System.Messaging.Message
object that would tell me that the message is from a different
computer/machine, that way I could just ignore those messages, but I
cannot find anything.

Any help would be appreciated,

Thanks,
 
I can't think of any way to do that, other than incorporating an identity in
each message that everyone agrees will be put into the queue, and ignoring
those messages with certain identities manually.

All UntrustedNetwork does is prevent the device from routing network
messages, it doesn't prevent them from arriving at your queue, as they don't
have to be routed to get there.

The only other thing I can think of to try is to set the DefaultQuota to a
very small value, or maybe even zero.

Paul T.
 
Back
Top