List Info

Thread: system.transaction and webservice confusion, please help




system.transaction and webservice confusion, please help
user name
2006-08-16 16:41:19
Just another thought:
Should I be calling my BLL from UI in async way, with a
delegate?
Display a loading message to the user, and if it takes a
long time, or if an
error is raised (if in DAL, pass it to the caller[BLL]) pass
it to the web
UI?

Uff,
thank you for any help,
Mike

----- Original Message ----- 
From: "Michal Tesar" <michal.tesargmail.com>
To: <aspnet-architectureaspadvice.com>
Sent: Wednesday, August 16, 2006 9:54 AM
Subject: [aspnet-architecture] Re: system.transaction and
webservice
confusion, please help


> Hi All and thank you for your input.
>
> The webservice isn't mine, it's provided by third
party.
>
> So I think I need to find out how the web service
provider handeld
> transactions, and if they support it in a way.
>
> If they don't, I can just use System.Transaction
namespace for my own need
> (ado.net). Is that correct?
>
> I also wanted to check with you.
>
> I have BLL with some business objects.
> The business objects call a DAL.
>
> DAL is pulling some data from my database, and will be
pulling some from
> the
> webservice. My concern is this: should I mask the
webservice under DAL,
> because business layer shouldnt care where the data
comes from?
>
> This way in future, when I implement the functionality
of the provider's
> webservice, I can just make a change in the DAL, and
BLL and Web will work
> the same.
>
> So, a sample scenario:
> WEB calls getAccountInfo in BLL
> BLL calls getAccountInfo in DAL and DAL will return an
Account object, and
> will fill this object
> by calling my internal db, and webservice, and blend
the data into the
> entity. Will return an Account entity to the BLL.
>
> Is this good?
>
> Mike
>
> ----- Original Message ----- 
> From: "Paul Mehner" <paulsoundex.com>
> To: <aspnet-architectureaspadvice.com>
> Sent: Tuesday, August 15, 2006 11:19 PM
> Subject: [aspnet-architecture] Re: system.transaction
and webservice
> confusion, please help
>
>
>> Also, just as a clarification to an earlier point
made:
>> System.Transactions
>> does much more than just handling ADO.NET provider
transactions as stated
>> in
>> an earlier post. While the post was contextually
accurate
>> (System.Transactions couldn't solve the
>> webservice-participating-in-a-transaction problem
without the webservice
>> being transactionally aware), System.Transactions
does allow code to be
>> transactionified, and it also supplies automatic
escalation from
>> lightweight
>> local transactions through heavier weight MSDTC
transactions (see:
>> http://msdn2.microsoft.com/en-us/library/system
.transactions.aspx).
>> System.Transactions could potentially be used as an
element of his
>> solution.
>>
>> --Paul
>>
>> -----Original Message-----
>> From: Steven M. Swafford
[mailto:steven.swaffordgmail.com]
>> Sent: Tuesday, August 15, 2006 11:54 AM
>> To: aspnet-architectureaspadvice.com
>> Subject: [aspnet-architecture] Re:
system.transaction and webservice
>> confusion, please help
>>
>> ODP.NET 10.2.0.2.20 does in fact make use of
System.Transactions.
>>
>>
>>
>> http://www.oracle.com/technology/tech/windows/odpne
t/faq.html
>>
>>
>>
>>
>>
>>  _____
>>
>> From: ambrogiogmail.com [mailto:ambrogiogmail.com] On Behalf Of J.
>> Ambrose
>> Little
>> Sent: Tuesday, August 15, 2006 8:44 AM
>> To: aspnet-architectureaspadvice.com
>> Subject: [aspnet-architecture] Re:
system.transaction and webservice
>> confusion, please help
>>
>>
>>
>> No, System.Transactions only handles ADO.NET
provider transactions, and
>> the
>> providers have to be written to do so.  The only
ones I know participate
>> in
>> System.Transactions are those provided by Microsoft
in the box.  Last I
>> heard, Oracle's latest ODP.NET provider still
doesn't.  Not sure about
>> other
>> providers--you'd have to ask them.
>>
>>
>>
>> But it doesn't may in-memory object changes or
things like WS calls
>> transactional.
>>
>>
>>
>> --Ambrose
>>
>>
>> On 8/15/06, Michal Tesar <michal.tesargmail.com> wrote:
>>
>> Hi All,
>>
>> I have a question.
>>
>> Let's say in my BLL I have a method that will do 5
tasks.
>>
>> task 1
>> call internal DAL to do something with internal
data, ie insert into our
>> database.
>>
>> task 2 call a webservice and execute a method
>>
>> ..etc.
>>
>> I wrap this into system.transaction functionality.
>>
>> If any of these above steps fails, all the tasks
will be rolled back?
>> What
>> about the webservice call?
>>
>> What if I'll update something through the
webservice, and it's proceeded
>> OK,
>> and in the next step I'll udpate my own database,
and the steps fails, I
>> need the to have all of the steps failed.
>>
>> Thank you,
>> Mike
>>
>>
>>
>> Need SQL Advice? http://sqladvice.com
>> Need RegEx Advice? http://regexadvice.com 
<http://regexadvice.com>
 Need
>> XML
>> Advice? http://xmladvice.com
>>
>>
>> Need SQL Advice? http://sqladvice.com Need
RegEx Advice?
>> http://regexadvice.com
Need XML Advice? http://xmladvice.com
>>
>>
>>
>>
>> Need SQL Advice? http://sqladvice.com
>> Need RegEx Advice? http://regexadvice.com
>> Need XML Advice? http://xmladvice.com
>>
>>
>>
>>
>> Need SQL Advice? http://sqladvice.com
>> Need RegEx Advice? http://regexadvice.com
>> Need XML Advice? http://xmladvice.com
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.1.405 / Virus Database: 268.10.10/418 -
Release Date:
>> 8/14/2006
>>
>>
>
>
>
> Need SQL Advice? http://sqladvice.com
> Need RegEx Advice? http://regexadvice.com
> Need XML Advice? http://xmladvice.com
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.10/419 -
Release Date: 8/15/2006
>
>



Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )