PC Review


Reply
Thread Tools Rate Thread

COM+ Application in running state

 
 
RobbieGotNeeds@netscape.net
Guest
Posts: n/a
 
      22nd Mar 2005
Hi,

I am tasked with writing a COM+ application in C# in which the program,
when started, will sit and poll for something (not important here), and
when that condition occurs, then I publish events so that subscribing
applications can do something. I've written a basic shell of a program
that I can install as a COM+ application (w/ gacutil, regsvcs, etc),
but my question is, since a COM+ application has no user interface, or
wait state like a Windows program with a timer, how do I make a COM+
application just sit there and do something at a partuicular interval?
I see there is the System.Threading.Timer class that I could possibly
use, but where would I instantiate it in the class? Are there any
startup methods that I can override?

All the COM+ examples I've seen have the COM+ methods invoked by a
client process only.

Any ideas?

TIA,
Robbie

 
Reply With Quote
 
 
 
 
Ollie Riches
Guest
Posts: n/a
 
      22nd Mar 2005
One possible solution would be:

A windows service that uses (hosts) a COM+ component and other applications
use loosely coupled events ( LCE) to recieve notifications as required.
The COM+ component could be either a library or server component.


--
HTH

Ollie Riches
http://www.phoneanalyser.net

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I am tasked with writing a COM+ application in C# in which the program,
> when started, will sit and poll for something (not important here), and
> when that condition occurs, then I publish events so that subscribing
> applications can do something. I've written a basic shell of a program
> that I can install as a COM+ application (w/ gacutil, regsvcs, etc),
> but my question is, since a COM+ application has no user interface, or
> wait state like a Windows program with a timer, how do I make a COM+
> application just sit there and do something at a partuicular interval?
> I see there is the System.Threading.Timer class that I could possibly
> use, but where would I instantiate it in the class? Are there any
> startup methods that I can override?
>
> All the COM+ examples I've seen have the COM+ methods invoked by a
> client process only.
>
> Any ideas?
>
> TIA,
> Robbie
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application lock state during Application start APA Microsoft ASP .NET 1 21st Jan 2007 01:31 AM
caching: Session state or Application state... spacehopper_man@yahoo.com Microsoft ASP .NET 6 30th Nov 2005 12:21 AM
Why can't Application state be managed like Session state? =?Utf-8?B?RXJpYyBNY1ZpY2tlcg==?= Microsoft ASP .NET 6 10th Nov 2005 11:56 AM
Application state - should I do this? Microsoft ASP .NET 7 3rd Jul 2005 06:49 PM
Using application state in asp.net =?Utf-8?B?Sm9zaHVhIFdlaXI=?= Microsoft ASP .NET 1 8th Oct 2004 05:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:20 PM.