473,394 Members | 2,160 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,394 software developers and data experts.

COM+ Application in running state

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

Nov 17 '05 #1
1 1557
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.
<Ro************@netscape.net> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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

Nov 17 '05 #2

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

Similar topics

6
by: Paolo Losi | last post by:
Hi all, I'm pretty new to the python language so please excuse me if this is FAQ... I'm very glad to be part of the list! :-) I'm looking into a way to implement a generic workflow framework...
8
by: Carel Lotz | last post by:
H We have ported our VB 6 application into VB .NET but are still integrating with a few COM + applications written in VB6 running on our application server (Win 2000 Server). We have the proxies...
4
by: Thomas Koch | last post by:
Hi - I would like to load other files relative to the application config file. Do anyone know if this is possible? If I do Environment.CurrentDirectory it will work if the program is launched...
26
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
8
by: Z D | last post by:
Hello, I'm having a strange problem that is probably due to my lack of understanding of how threading & COM Interop works in a WinForms.NET application. Here's the situation: I have a 3rd...
2
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
1
by: Mike | last post by:
When running a 24*7 website, we need to keep the our asp.net 2.0 web applications from restarting as much as possible. Especially during any deployments of aspx, aspx.vb files and possible .vb...
5
by: james.jdunne | last post by:
System.ArgumentException: Item has already been added. Key in dictionary: "-1" Key being added: "-1" at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at...
1
by: Florence Tissot | last post by:
We are seeing some kind of resource leak in our performance lab running an ASP.NET (2.0) application that sends and receives messages from 2 public MSMQ queues. Here's a brief summary of what are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.