Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Queued Components and TransactionScope

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 25 Jul 2006 22:17 GMT
Hi,

I have an app that uses Queued Components.  The queue is set as
transactional and the transaction is set to Supported (I've also tried
Required).  Everything is running on the same box (tried XP and 2k3).  In my
app I wrap the queued component call in a TransactionScope.  I'm using
EnterpriseServicesInteropOption.Full in creating the scope.  Right after
queuing the component I intentionally throw an exception and don't complete
the scope.  The message stays on the queue and gets processed.  This is a
simplified version of what my program really does, which is call a database
update within that same scope.  When something fails I want the entire
transaction rolled back; DB and MSMQ.  What actually happens though is that
the DB rolls back but MSMQ doesn't.  I created the simplified version just
to see if I could get MSMQ to roll back, but I can't.  So what am I missing?

John
Kevin Yu [MSFT] - 26 Jul 2006 07:52 GMT
Hi John,

Could you send the simplified version to me so that I can troubleshoot on
it? Remove 'online' from the nospam alias is my real email.

Kevin Yu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
John - 27 Jul 2006 00:36 GMT
Hi Kevin,

Thank you for the reply.  The simplified version still uses a huge library
that does the queueing among other things.  I can't send you that.  I'll see
if I can work up a really simple stand-alone version that doesn't have any
of that.  But in the mean time, is there anything special I need to do other
than what I've already described?  This should work, right?

John

> Hi John,
>
[quoted text clipped - 23 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Kevin Yu [MSFT] - 27 Jul 2006 09:37 GMT
Hi John,

If the transaction is rolled back, please make sure that the
TransactionScope is disposed successfully. Putting the TransactionScope
object in a using block is a good idea.

http://msdn2.microsoft.com/en-us/library/system.transactions.transactionscop
e.aspx

Currently, I have no other ideas on this issue. If you have a repro sample,
please feel free to send it to me, I'll take a look. Thank you for your
understanding.

Kevin Yu
Microsoft Online Community Support
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.