-
Apr 21st, 2012, 12:03 PM
#1
Thread Starter
PowerPoster
Faulted state stops processing?
im trying to play around with examples and samples specifically from MSDN which involves MSMQ.
after alot of reading, I was under the impression that if the WCF service faults then the message is placed back in the MSMQ (talking transactional here) and waiting to be processed again.
in a quick example, I threw an empty Exception on the service. Sure enough I see the message still in the queue.
but when I restart the service, it does not appear to process that message or any NEW messages coming through.
seems that the only way is to purge the messages in the queue - something I dont want to do.
any ideas?
-
Apr 23rd, 2012, 10:16 AM
#2
Fanatic Member
Re: Faulted state stops processing?
Originally Posted by Techno
im trying to play around with examples and samples specifically from MSDN which involves MSMQ.
after alot of reading, I was under the impression that if the WCF service faults then the message is placed back in the MSMQ (talking transactional here) and waiting to be processed again.
in a quick example, I threw an empty Exception on the service. Sure enough I see the message still in the queue.
but when I restart the service, it does not appear to process that message or any NEW messages coming through.
seems that the only way is to purge the messages in the queue - something I dont want to do.
any ideas?
This might be relevant
http://msdn.microsoft.com/en-us/library/aa355056.aspx
-
Apr 23rd, 2012, 10:20 AM
#3
Thread Starter
PowerPoster
Re: Faulted state stops processing?
Thanks. I did come across that but didnt quite help but it does make sense.
I think the key here is that if the WCF encounters an error, the channel is faulted therefore from the client side, the next request must new up the channel and continue to use that channel.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|