473,545 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ServiceConfig class for utilizing COM+ services

RJN
Hi

In my application architecture, the business logic classes talk to the
data access classes. The business logic classes might also talk to other
business logic classes. The business logic classes are not aware of
handling transactions, handling connection etc. They are done by data
access classes.

Eg.,

The code in a typical business logic class looks like this.
Public Function CreateEmployee( )
Dim oEmpDL as new EmpDL
EmpID = oEmpDL.InsertEm ployee(employee object)
Dim oAddress as new AddressDL
oAddress.Insert Address(EmpID, Addressobject)
End Function

The InsertEmployee and InsertAddress methods open and close the
connection. The problem with this appproach is handling transactions. I
cannot use ADO.Net transactions. One way is to use COM+ transactions and
inherit the data access components from ServicedComponn et class. But
this has some overhead of having strong names and registering the dlls
in com+ services.

I came across an article on ServiceConfig class
(http://www.15seconds.com/issue/030930.htm) which provides COM+ services
without the need of registering dlls. I could not see more information
on this class on MSDN. Is there any draw back on using this. Has anybody
used this on a production environment? My another requirement is data
will be in multiple databases and hence there is a need for distributed
transaction. Any help/suggestion is appreciated.

Thanks

rjn


*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #1
0 1341

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

Similar topics

3
8880
by: Benne Smith | last post by:
hi all, i have a webservice with some public classes in it. These classes are visible from my proxy class, generated from wsdl.exe. The problem is, that when i look in the generated proxy class, my classes are reduced to properties only (like "public string myString;"). But the code, functions, are not transferred into the proxy class,...
5
2132
by: Mahesh Devjibhai Dhola | last post by:
Hi All, I want to make a custom class in c#, which extends System.Xml.XmlNode class of BCL. Now in custom class, I have implement abstract methods of XmlNode class also. Now when I am trying to run the class it gives an error that "System.Xml.XmlNode.XmlNode() is inaccessible due to its protection level". This error comes because XmlNode...
1
2915
by: Wade Wegner | last post by:
Hello, Using the MailMessage class (or any other ASP.NET SMTP classes), I would like to programmatically request a read receipt. Is this possible? I have found an article that talked about a ReadReceipt property for CDO 1.2.1, but I have not been able to find a ASP.NET or MailMessage article that specifically deals with this issue. ...
5
1230
by: Bill Dodd | last post by:
Oh dear, Microsoft. Please if we need to contact you for bad content in your books. Pease make it easy, I have been sent to the same webpage at least 5 times through different directions.. Whoever is mediating on this forum, can you make sure the right department gives me an answer:- MS Press 0-7356-1891-7 101 VB .Net applications. First...
0
223
by: RJN | last post by:
Hi Sorry for the repeated posting. This is about using ServiceConfig class for utilizing COM+ servcies. In my application architecture, the business logic classes talk to the data access classes. The business logic classes might also talk to other business logic classes. The business logic classes are not aware of handling transactions,...
0
777
by: RJN | last post by:
Hi My application needs component level transactions and across database transactions. .Net provides 2 classes ServiceDomain/ServiceConfig for using component services. This is supported in Windows 2003, but not in Windows 2000. This approach is quite simple and doesn't have the overhead of registering components unlike using...
0
902
by: RJN | last post by:
Hi I'm using ServiceDomain/ServiceConfig for handling transactions. This worked fine in Windows 2003 server as webserver and database server in another Windows 2003 server. In my client's place, webserver is Windows2003 WEB edition and database server is Windows 2003 standard. The IIS is running with IIS 5.0 isolation mode. The client is...
0
1180
by: Frank Rizzo | last post by:
Almost a year ago, someone asked the question below and I am running into the same problem: I have two web services (code below). If I have only one webservice in my disco file it works, it works fine. If I have multile web services in the file, word "Soap" is appended to the classes. What is the problem here? Thanks
16
2339
by: tshad | last post by:
This is a little complicated to explain but I have some web services on a machine that work great. The problem is that I have run into a situation where I need to set up my program to access one or another (could also be 3) different web servers to use these Web Services. The Web Services are identical on all the machines. I tried just...
1
1968
by: Jon Ebersole | last post by:
I am developing a webservice and a windows application that talk to each other. They are using a standard VB class library in the background. I am having problems understanding why I can't sync my namespaces properly. Example; My Windows namespace is MyCompany.MyWindowsSpace My Webservice namespace is MyCompany.MyWebService My Class...
0
7659
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7811
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7760
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5334
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3455
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1887
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1019
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
709
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.