473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

ADO.Net, Transactions, and ASP.Net

I just want to know the advantages vs disadvantages of using Component
Services to handle our web application transactions over creating and
passing around a transaction object of our own? When would you use one over
the other, or use one instead of the other?

Thanks :)

Mythran

Nov 19 '05 #1
4 1114
Advantages of COM+
Can have a distributed transaction over more then one database
Don't need to pass around the connection/transaction

Disadvantages of COM+
Have to have strong named assemblies - not optional
Can't use any non-strong named assemblies in your project
Easy wind up with some sort of configuration/versioning problem

Personally, I would avoid COM+ whenever possible. It is not that much effort
to have a central place to store your transaction related objects, so all
your code can use it. It really comes down to how many databases are
involved. If just 1, I would go for just ADO transaction, if more then 1,
you have no choice but to go with COM+
"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:eg**************@TK2MSFTNGP09.phx.gbl...
I just want to know the advantages vs disadvantages of using Component
Services to handle our web application transactions over creating and
passing around a transaction object of our own? When would you use one
over the other, or use one instead of the other?

Thanks :)

Mythran

Nov 19 '05 #2
Mythran,

COM+ based transactions, I presume enterprise services - are very expensive.
Plus atleast for enterpriseservices, they will need strong naming (unless
you can restrict yourself to serviceconfig). WHich makes them a pain to
deploy even.

The preferences is to keep it as close to the db as possible, so for a
single database, SqlTransaction still takes the cake.

- Sahil Malik [MVP]
http://codebetter.com/blogs/sahil.malik/

"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:eg**************@TK2MSFTNGP09.phx.gbl...
I just want to know the advantages vs disadvantages of using Component
Services to handle our web application transactions over creating and
passing around a transaction object of our own? When would you use one over the other, or use one instead of the other?

Thanks :)

Mythran

Nov 19 '05 #3
Just an addition. COM+ could be very expensive from the performance point of
view

--
Val Mazur
Microsoft MVP

http://xport.mvps.org

"Marina" <so*****@nospam.com> wrote in message
news:O6***************@TK2MSFTNGP09.phx.gbl...
Advantages of COM+
Can have a distributed transaction over more then one database
Don't need to pass around the connection/transaction

Disadvantages of COM+
Have to have strong named assemblies - not optional
Can't use any non-strong named assemblies in your project
Easy wind up with some sort of configuration/versioning problem

Personally, I would avoid COM+ whenever possible. It is not that much
effort to have a central place to store your transaction related objects,
so all your code can use it. It really comes down to how many databases
are involved. If just 1, I would go for just ADO transaction, if more then
1, you have no choice but to go with COM+
"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:eg**************@TK2MSFTNGP09.phx.gbl...
I just want to know the advantages vs disadvantages of using Component
Services to handle our web application transactions over creating and
passing around a transaction object of our own? When would you use one
over the other, or use one instead of the other?

Thanks :)

Mythran


Nov 19 '05 #4

"Marina" <so*****@nospam.com> wrote in message
news:O6***************@TK2MSFTNGP09.phx.gbl...
Advantages of COM+
Can have a distributed transaction over more then one database
Don't need to pass around the connection/transaction

Disadvantages of COM+
Have to have strong named assemblies - not optional
Can't use any non-strong named assemblies in your project
Easy wind up with some sort of configuration/versioning problem

Personally, I would avoid COM+ whenever possible. It is not that much
effort to have a central place to store your transaction related objects,
so all your code can use it. It really comes down to how many databases
are involved. If just 1, I would go for just ADO transaction, if more then
1, you have no choice but to go with COM+


You would avoid COM+ because you have to have strong named assemblies? Not
a problem, all my assemblies are given a strong-name anyways. All our data
access and business logic components are registered in Component Services
and I only posted this thread because I wanted to know if it would be better
to go with something else. It seems that I would have to do a LOT of
passing of objects around to achieve what we already do with COM+. Not only
that, we do not see a performance hit with COM+ that everyone always seems
to mention when I ask questions about it. It has been pretty smooth thus
far. Anywho, thanks for the replies y'all.

Mythran

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Christopher J. Bottaro | last post by:
Hi, Why is there no support for explicit transactions in the DB API? I mean like transaction() to start the trans and commit() and rollback() would end the trans or something. The reason why I...
7
by: Richard Maher | last post by:
Hi, I am seeking the help of volunteers to test some software that I've developed which facilitates distributed two-phase commit transactions, encompassing any resource manager (e.g. SQL/Server...
3
by: Iain Mcleod | last post by:
I wish to do a series of inserts on a sql server database in the context of a transaction. The inserts will be done as a series of stored procedure calls. I wish to be able to rollback any...
6
by: Terri | last post by:
I have a table called Transactions with 3 fields: ID, Date, and Amount. Each ID can have multiple transactions in one particular year. An ID might not have had any transactions in recent years. ...
9
by: TD | last post by:
I am trying to add transactions to my code. The original code worked fine until I followed an example to setup transactions, now the code does strange things, but no error messages. Could...
11
by: Mike P | last post by:
I've been using C# transactions for a while and had no problems with them. Using try catch blocks I can trap basically all possible errors and rollback all necessary data. Over the last few...
1
by: mark | last post by:
In Java, you can use JBoss or similar to host EJB that will manage your transactions for you. You could, of course, write your own transactions using JDBC. In .NET, we can specify our own...
0
radcaesar
by: radcaesar | last post by:
Customer Table ID Name Address City Phone 1 Vijay Stores 6,Gandhi Road Pondy 0413-276564 2 Ram Stores 3, MG Road, Pondicherry 0413-29543756 3 Balu Papers 3, RG...
2
by: Sridhar | last post by:
Hi, I am trying to implement sql transactions. But I am not knowing how to do that. I created a data access layer which contains methods to select/insert/update tables in a database. I have also...
12
by: Rami | last post by:
I have some requirement for an automated payment system. The system has four machines setup as follows: 1- Two machines have a clustered database. 2- Two machines have a .net business logic...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.