HighTechTalks DotNet Forums  

ServiceDomain usage confusion

Dotnet Framework (Component Services) microsoft.public.dotnet.framework.component_services


Discuss ServiceDomain usage confusion in the Dotnet Framework (Component Services) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Brad King
 
Posts: n/a

Default ServiceDomain usage confusion - 11-18-2004 , 10:24 AM






I'm using Win2003 server .Net 1.1 and migrating from a ServicedComponent
dervived data access layer to "services without components". I've seen some
simple examples, but nothing that really clarifies the following for a real
enterprise solution:

- lets say business logic initiates a transaction by entering code in a new
ServiceDomain with transaction required. It then creates and uses several
data access layer objects. Does each data access layer object method have to
create its own ServiceDomain or will it automatically be part of the callers
ServiceDomain ?

- is SetAbort/SetComplete on ContextUtil even required ? Is it required for
each DAL method I execute within the ServiceDomain ? This is where I have
seen no similar usage. Some examples just throw exceptions and never call
SetAbort/SetComplete, and some do it in every call in the chain. Actually
most examples don't even make calls outside of the initiating class, so hard
to say.

this seems like a great feature, but I don't have a ton of time for trial
and error to figure out the transaction coding model.

thanks!



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.