all groups > dotnet distributed apps > january 2006 >
You're in the

dotnet distributed apps

group:

help me to undertsand Serviced Componenets ???



help me to undertsand Serviced Componenets ??? serge calderara
1/18/2006 2:17:02 PM
dotnet distributed apps: Dear all,

I am trying to catch the real used of a serviced componenent
I get an example where a libarary named Account has been defined as a
serviced component by inheriting from System.ServiceComponent class
This library is performing some action on an SQL dtabase tables

Then I have a client application named Transaction with create an Instance
of the Account class on the form load event, then update object interface
with received data from the database through the account component.

So far so good, but then why making those thig so complicated, I could do
the same this with a normal Account assembly ?

Does any one could explain me what is the idea behind this example then

thnaks for your help
regards
RE: help me to undertsand Serviced Componenets ??? Rodrigo García
1/19/2006 1:28:04 AM
Hi.

The use of Serviced Components makes sense when you need distributed
transactions (two-phase transactions).
e.g. you need to read some values from a database, enqueue a message with
msmq, and update another database in an all-or-nothing fashion. You could do
those things manually but it gets complicated. The solution is to put that in
a Serviced Component and let the DTC carry out the transactions

I hope it helps.



[quoted text, click to view]
RE: help me to undertsand Serviced Componenets ??? serge calderara
1/19/2006 1:52:03 AM
So does it mean that all this serviced component is use and only use to
handle database transaction ?


[quoted text, click to view]
RE: help me to undertsand Serviced Componenets ??? serge calderara
1/19/2006 12:33:02 PM
web services are doing the same thing...

do you have any simple samples ?
By the way is it something whcih is really used today? i dont think so, web
service goes on the scene

serge

[quoted text, click to view]
RE: help me to undertsand Serviced Componenets ??? Michael Nemtsev
1/19/2006 7:27:40 PM
Hello serge,

Nope, Services component is used in distributed application - to create scalable
architecture, where are parts of system are physically distributed.

It's not necessary to handle transaction with DB, u can handle any resource
with transactions, even files



sc> So does it mean that all this serviced component is use and only use
sc> to handle database transaction ?
sc>
[quoted text, click to view]
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

RE: help me to undertsand Serviced Componenets ??? serge calderara
1/20/2006 12:07:02 AM
DO you have any good links based on the difference?

[quoted text, click to view]
RE: help me to undertsand Serviced Componenets ??? Michael Nemtsev
1/20/2006 4:57:23 AM
Hello serge,

WebServices doing only part of that things. You should unterstand that WS
gives u a platform-independent abstraction layer.
It's not a substitute for ES.

WS can't manipulate transactions as ES, WS is slower then ES and etc.
I recomend to read about ES to understand its power

sc> web services are doing the same thing...
sc>
sc> do you have any simple samples ?
sc> By the way is it something whcih is really used today? i dont think
sc> so, web
sc> service goes on the scene
sc> serge
sc>
[quoted text, click to view]

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

RE: help me to undertsand Serviced Componenets ??? Michael Nemtsev
1/20/2006 7:58:11 PM
Hello serge,

You know, I even don't know what to recomend u to read to get a view on the
pros and cons of ES and WS in one article
I just working with COM+ and WS several years and have read several books
about each technology, but links... i really dunno

sc> DO you have any good links based on the difference?
sc>
[quoted text, click to view]

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

AddThis Social Bookmark Button