473,379 Members | 1,260 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,379 software developers and data experts.

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.InsertEmployee(employee object)
Dim oAddress as new AddressDL
oAddress.InsertAddress(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 ServicedComponnet 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 1314

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

Similar topics

3
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,...
5
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...
1
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...
5
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.....
0
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...
0
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...
0
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,...
0
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...
16
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...
1
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.