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

From COM+ to WCF

Hi,
If I have my COM+ component which gets loaded from a service
(loaded in IIS for example) and if that component crashes it is
limited only to that component. The service as such is fine except
that the calls for the crashed components are gone. Now, if I have a
WCF service again hosted in IIS which loads a .NET component and
suppose if that component crashes, is my service gone? For testing if
I don't handle an exception and actually give an input which generates
that situation will my service go down?

Have I missed something or is this the drawback for this kind of
approach?

Thanks.
Jan 10 '08 #1
7 1825
Now, if I have a
WCF service again hosted in IIS which loads a .NET component and
suppose if that component crashes, is my service gone?
Typically, it just means that the affected request(s) will return a
fault exception. But you'd need to be more specific...

Marc
Jan 10 '08 #2
On Jan 10, 10:10*am, Marc Gravell <marc.grav...@gmail.comwrote:
Now, if I have a
WCF service again hosted in IIS which loads a .NET component and
suppose if that component crashes, is my service gone?

Typically, it just means that the affected request(s) will return a
fault exception. But you'd need to be more specific...

Marc

Marc, Thanks for the reply.
My question will be, if the same service is responsible to load other
components based on the client input requests, then will one component
crashing cause the service to get crashed since the component gets
loaded in the service address space? Will each component be a single
point of failure?
Jan 10 '08 #3
I'm sorry, but that depends entirely on how you code it! What exactly
is failing? A single failed request won't normally corrupt an entire
app, unless you simply code it badly...
To answer this question sensibly you would need to describe what type
of bizarre crash you are expecting, and what you are defining as a
"component" (in your "will each component be...").

Marc
Jan 10 '08 #4
On Jan 10, 1:05*pm, "Marc Gravell" <marc.grav...@gmail.comwrote:
I'm sorry, but that depends entirely on how you code it! What exactly
is failing? A single failed request won't normally corrupt an entire
app, unless you simply code it badly...
To answer this question sensibly you would need to describe what type
of bizarre crash you are expecting, and what you are defining as a
"component" (in your "will each component be...").

Marc
Okay so I have my WCF service which based on the input will load any
of the component. Here component will be just another dll developed
in .NET.
For testing purposes I can generate a FileNotFound exception and let
it go unhandled. So in that case will the service be able to still
accept and route other incoming requests?

Thanks.
Jan 10 '08 #5
Yes.

Don't get me wrong; it is perfectly possible to shaft an AppDomain,
but it won't happen just because you throw an exception. Exceptions
are anticipated.

(please: no purist "exceptions are *never* expected" wars...)

Marc
Jan 10 '08 #6
One caveat; it will probably trash the proxy (and session). Once your
client proxy has received a fault, you should really ditch it. But the
WCF service itself is still good to go...

Marc
Jan 10 '08 #7


Marc Gravell wrote:
One caveat; it will probably trash the proxy (and session). Once your
client proxy has received a fault, you should really ditch it. But the
WCF service itself is still good to go...

Marc

Thanks for the comments :)
But it will be over http and we are not maintaining states though ..
Hopefully my service remains just fine !
Jan 11 '08 #8

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

Similar topics

5
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
5
by: saga git | last post by:
how to display nth record from table
0
by: bdhassan87 | last post by:
how can i insert data to datagrid from text box using visual basic 6.0
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.