R
ranga
this question related to the architecture of distributed apps that require
transactions - using C#, VS.NET 2003, SQL2000
That is, a single asmx file can have several webmethods each having a
different
TransactionOption attribute. If I use this attribute to get
automatic-transactions, how does ASP.NET accomplish this without using COM+ ?
Option 1 : - Use WebMethods (for insert/uddate/delete) with
TransactionOption attribute
- the Webmethod contains ADO.NET code
- drawback is that ADO.NET code is exposed in the webmethod
- question in my mind is : since COM+ is not used here, what
are the
drawbacks of this option. Is this a scalable option?.
Option 2: - Use WebMethods (for insert/update/delete) with
TransactionOption attribute
- put the ADO.NET code in a simple dll (non serviced component)
- Webmethod calls the classes in the dll
--advantage : ADO.NET code is not exposed in asmx files
option 3: - Use WebMethod without TransactionOption attribute
- put the ADO.NET code in a dll that has serviced components
- register the dll in com+
- webmethod calls the serviced component classes hosted in COM+
- complex option - com+ registration/management is difficult
-- what are the advantages of this option ?. Can i live without
com+
and use option 1 -- does this option give me any advantage
over
option 1 and 2 ?
of 25-50 users if option-1 and 2 are sufficient to get the advantage of
automatic transactions and not have the complexity of com+/serviced
components.
thanks
ranga
transactions - using C#, VS.NET 2003, SQL2000
That is, a single asmx file can have several webmethods each having a
different
TransactionOption attribute. If I use this attribute to get
automatic-transactions, how does ASP.NET accomplish this without using COM+ ?
Option 1 : - Use WebMethods (for insert/uddate/delete) with
TransactionOption attribute
- the Webmethod contains ADO.NET code
- drawback is that ADO.NET code is exposed in the webmethod
- question in my mind is : since COM+ is not used here, what
are the
drawbacks of this option. Is this a scalable option?.
Option 2: - Use WebMethods (for insert/update/delete) with
TransactionOption attribute
- put the ADO.NET code in a simple dll (non serviced component)
- Webmethod calls the classes in the dll
--advantage : ADO.NET code is not exposed in asmx files
option 3: - Use WebMethod without TransactionOption attribute
- put the ADO.NET code in a dll that has serviced components
- register the dll in com+
- webmethod calls the serviced component classes hosted in COM+
- complex option - com+ registration/management is difficult
-- what are the advantages of this option ?. Can i live without
com+
and use option 1 -- does this option give me any advantage
over
option 1 and 2 ?
of 25-50 users if option-1 and 2 are sufficient to get the advantage of
automatic transactions and not have the complexity of com+/serviced
components.
thanks
ranga