473,569 Members | 2,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using DCOM to broadcast messages

DCOM people,

I used to use TIBCO Rendezvous software to do the following, but I
can't anymore, so I have implemented my solution using DCOM.

I have a DCOM server component that receives events from an external
data provider, writes this data to a SQL Server database and raises a
new data event.

This event is then received by several "listening" client components.
Depending on each client's preferences, this may or may not lead to
the querying of the database for the new information.

Sometimes (I'm guessing when a lot of data comes in from the external
source) there can be a delay as messages appear to be queueing up at
the server component. From what I understand of DCOM, processing
cannot continue on the server component until all the clients have
processed the event that was raised.

I would rather make the events asynchronous, and I understand you can
do that using threads but that sounds too difficult. Is there a
simple way to keep the clients up to date with new data developments,
without them being "connected" to the server component?

Hope someone can help me here.

Many thanks,

- Mike Carter
Jul 17 '05 #1
2 2432

"Mike Carter" <mi********@pos tmaster.co.uk> wrote in message
news:95******** *************** ***@posting.goo gle.com...
DCOM people,

I used to use TIBCO Rendezvous software to do the following, but I
can't anymore, so I have implemented my solution using DCOM.

I have a DCOM server component that receives events from an external
data provider, writes this data to a SQL Server database and raises a
new data event.

This event is then received by several "listening" client components.
Depending on each client's preferences, this may or may not lead to
the querying of the database for the new information.

Sometimes (I'm guessing when a lot of data comes in from the external
source) there can be a delay as messages appear to be queueing up at
the server component. From what I understand of DCOM, processing
cannot continue on the server component until all the clients have
processed the event that was raised.

I would rather make the events asynchronous, and I understand you can
do that using threads but that sounds too difficult. Is there a
simple way to keep the clients up to date with new data developments,
without them being "connected" to the server component?

Hope someone can help me here.

Many thanks,

- Mike Carter


Just some ideas here, nothing for sure:
1. Client could poll on a timer. On the timer event, it could create a
server object, check whether there is an update (maybe a LatestUpdate
property as DateTime), then release the server object before running a
data query.
2. Client could process the data event quickly, by not running a query
in the event handler. Instead, it could set a local timer and exit the
event handler. Then it can run the query on the local timer event.
3. If you don't want to modify the client side, you could have a proxy
object on the server, one per client, which connects to the main server
object, and implements 1 or 2 above. Instead of running the query, it
would raise its own event back to the client.

Jul 17 '05 #2
Thanks for your suggestions Steve, I think 2 might help me out, there
is currently a lot of processing on the event procedure that could be
causing the slow-down. Also, with a timer-based solution, each client
would be querying the database at slightly different times which can't
hurt either.

"Steve Gerrard" <no************ *@comcast.net> wrote in message news:<cY******* *************@c omcast.com>...

Just some ideas here, nothing for sure:
1. Client could poll on a timer. On the timer event, it could create a
server object, check whether there is an update (maybe a LatestUpdate
property as DateTime), then release the server object before running a
data query.
2. Client could process the data event quickly, by not running a query
in the event handler. Instead, it could set a local timer and exit the
event handler. Then it can run the query on the local timer event.
3. If you don't want to modify the client side, you could have a proxy
object on the server, one per client, which connects to the main server
object, and implements 1 or 2 above. Instead of running the query, it
would raise its own event back to the client. "Mike Carter" <mi********@pos tmaster.co.uk> wrote in message
news:95******** *************** ***@posting.goo gle.com...
DCOM people,

I used to use TIBCO Rendezvous software to do the following, but I
can't anymore, so I have implemented my solution using DCOM.

I have a DCOM server component that receives events from an external
data provider, writes this data to a SQL Server database and raises a
new data event.

This event is then received by several "listening" client components.
Depending on each client's preferences, this may or may not lead to
the querying of the database for the new information.

Sometimes (I'm guessing when a lot of data comes in from the external
source) there can be a delay as messages appear to be queueing up at
the server component. From what I understand of DCOM, processing
cannot continue on the server component until all the clients have
processed the event that was raised.

I would rather make the events asynchronous, and I understand you can
do that using threads but that sounds too difficult. Is there a
simple way to keep the clients up to date with new data developments,
without them being "connected" to the server component?

Hope someone can help me here.

Many thanks,

- Mike Carter

Jul 17 '05 #3

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

Similar topics

6
4620
by: Ray Paseur | last post by:
We broadcast email messages with PHP scripts, but sometimes email is not timely and we would like to send something that could get there faster. Can anyone tell me about how to send Instant Messages (Y, AOL, MSN, Trillian, etc.) or SMS from within a script? Please copy your reply off group to "access (a) NatPresCh .org" - hopefully I will...
1
1535
by: Bruno van Dooren | last post by:
Hi, currently we have an intern writing an OPC server for us in C++. OPC is a hierarchy of classes based on DCOM. When the intern leaves I will have to maintain that server. since i am new to DCOM, I was wondering if anyone could recommend a good book for learning DCOM: what it is, what it can do, how to program and use it ...
3
2080
by: S.Creek | last post by:
Hi, I am trying to build a multi clients application with C# that will send and receive messages using a listener on a server, the computers are all on the same LAN, the listener need to identify a message in the MS Queues he listens on, and send it to the relevant clients (not all need to get all messages) it can send the message through...
3
2013
by: Alex | last post by:
I'm having a problem porting an ASP solution to ASPX. In the ASP solution I'm accessing a DCOM server, create sub DCOM objects and call functions from VB script on the ASP pages. The DCOM object handles are stored in session variables. This works fine without a problem. Ported it to ASPX, accessing the same DCOM server from code behind...
3
1504
by: Oleg Skopincevs | last post by:
Hi folks, I am stuck on a problem of creating an object via DCOM from a webservice component. Code: Dim sl As LogonSrv.SysLogon = CreateObject("LogonSrv.SysLogon", LogonServer) Is there some kind of security involved in accessing DCOM components? If yes, what kind? Is it configurable?
4
3186
by: Josh Behl | last post by:
When I try to programmatically open an existing Excel document using a custom windows form, it works perfectly. I instanciate a new instance of the Excel.ApplicationClass and then set the Visible property to 'true'...then I open the workbook in question via my code..... However, when I try this using ASP.NET. It does not work. I've...
7
2297
by: GTi | last post by:
I need a code snippet for sending a message to all computers located on the same IP subnet. This is only a simple message like; "Here I am" I'm developing a server/client application. Instead of configuration of each clients where the server is located I want the server to broadcast a simple message that the server is present. This solution...
0
1560
by: salman | last post by:
Hello i am working on real time application, there is many clients in network, some connected locally LAN and some via VPN through RAS (remote access service), I am facing problem to broadcast the message to all connected client of VPN. i have uesd to send messages to 255.255.255.255 it broadcast the message to VPN but it also broadcast the...
9
3683
by: Irmen de Jong | last post by:
Hello Sorry this might be a bit offtopic but I don't really know where else to post this question. If you could point me in the right direction that is much appreciated. I'm running into a weird thing on Windows XP. I'm using Python 2.5 with latest pywin32 from Mark Hammond.
0
7697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.