Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any tips on remoting objects?

Status
Not open for further replies.

TerraSamba

Programmer
Aug 19, 2002
57
NL
I have been wrestling with the remoting samples. But I cannot seem to get it to work. Wondering if any of you guys could give me a hand or know some places where I read up on this matter:

Here is what I want to do:

I am making an app. that needs to know if other people changed data in the database like every 0.5 sec. Instead of having all the clients (which are now 10, but are bound to be more, like 50 or so).

These changes cover many different tables, and with so many users asking the database all the same questions every 0.5 secs ... it is just not a good idea (believe me I tried, looked nice in the beginning, but after the database started filling up a bit...you know...)

Instead I want to make a component/server where my clients can register and hook up for certain types of events based on parameters the clients provide.

So first of all I need 1 instance of a class, running on a server machine and serving the clients the right classes (these classes of course in their turn, should also only be instantiated once, but that's for later)...

My problem seems to be that I cannot seem to get only one instance of a class. I tried the ms chatserver sample, but it does not hook up to the events. The sample runs but no events are received. My app.config file seems ok, singleton, right uri etc

Anyone got some bright ideas how to solve this problem or got some tips?

Thanx The gap between theory and practice is not as wide in theory as it is in practice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top