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

Listening to events published by other apps?

Hi Everybody,

How do I go about listening to events published by other apps?
I know that my events are working internally (ie within my client),
but when I subscribe to an event published by a different client, it
doesn't work.

I feel like I'm missing something. Please point me in the right
direction.

Thanks in advance!
Nov 15 '05 #1
8 1397
Hi,

You should really take a look at remoting or message queue management.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

<wobbles> wrote in message
news:ms********************************@4ax.com...
Hi Everybody,

How do I go about listening to events published by other apps?
I know that my events are working internally (ie within my client),
but when I subscribe to an event published by a different client, it
doesn't work.

I feel like I'm missing something. Please point me in the right
direction.

Thanks in advance!

Nov 15 '05 #2
Hello Miha,

I was hoping you wouldn't say something like that.
That sounds pretty complicated.

Do you know of any online resources that explain what I should do?
If you could recommend a good book, that would be great too!

Thanks again

Hi,

You should really take a look at remoting or message queue management.


Nov 15 '05 #3
You might take a look at .net help (very usefull) plus there are really nice
examples in .net sdk folder (
C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Samples\Technologies\Remoting).

For message queues there is .net help topic
Message Queues and Messaging Technology Backgrounder
and others
--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

"wobbles" <no***************************@killspam.hotmail.co m> wrote in
message news:8a********************************@4ax.com...
Hello Miha,

I was hoping you wouldn't say something like that.
That sounds pretty complicated.

Do you know of any online resources that explain what I should do?
If you could recommend a good book, that would be great too!

Thanks again

Hi,

You should really take a look at remoting or message queue management.

Nov 15 '05 #4
Thanks Miha,

It's back to the books I go.
I don't always find the Microsoft help very easy to understand but
I'll give it a go.

Remoting/message queuing sounds quite complicated. Is it?

Thanks again.

On Thu, 11 Dec 2003 21:28:48 +0100, "Miha Markic" <miha at rthand com>
wrote:
You might take a look at .net help (very usefull) plus there are really nice
examples in .net sdk folder (
C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Samples\Technologies\Remoting).

For message queues there is .net help topic
Message Queues and Messaging Technology Backgrounder
and others


Nov 15 '05 #5
Hi wobbles,

Actually it is pretty simple.
Check out the samples (for remoting).

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

"wobbles" <no***************************@killspam.hotmail.co m> wrote in
message news:nn********************************@4ax.com...
Thanks Miha,

It's back to the books I go.
I don't always find the Microsoft help very easy to understand but
I'll give it a go.

Remoting/message queuing sounds quite complicated. Is it?

Thanks again.

On Thu, 11 Dec 2003 21:28:48 +0100, "Miha Markic" <miha at rthand com>
wrote:
You might take a look at .net help (very usefull) plus there are really niceexamples in .net sdk folder (
C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Samples\Technologies\Remoting).

For message queues there is .net help topic
Message Queues and Messaging Technology Backgrounder
and others

Nov 15 '05 #6
Miha, Wobbles,

* Remoted events have a very unpleasant feature - the order in which event
handlers will be called is unpredictable as remoting requests are served on
the thread pool. If the event order is not important, you can probably
ignore that warning. But if it IS important, remoting seems to be useless.

* Message Queues require MSMQ to be installed, don't they?

* I have used Named Pipes for delivering events across process boundaries
and they work just fine. The only caveat is that you should resort to
P/Invoke to create and initalize both ends of the pipe. Then, the FileStream
class constructed from the pipe handle works with the pipe almost as it was
a regular file.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Miha Markic" <miha at rthand com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
Hi wobbles,

Actually it is pretty simple.
Check out the samples (for remoting).

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

"wobbles" <no***************************@killspam.hotmail.co m> wrote in
message news:nn********************************@4ax.com...
Thanks Miha,

It's back to the books I go.
I don't always find the Microsoft help very easy to understand but
I'll give it a go.

Remoting/message queuing sounds quite complicated. Is it?

Thanks again.

On Thu, 11 Dec 2003 21:28:48 +0100, "Miha Markic" <miha at rthand com>
wrote:
You might take a look at .net help (very usefull) plus there are really niceexamples in .net sdk folder (
C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Samples\Technologies\Remoting).

For message queues there is .net help topic
Message Queues and Messaging Technology Backgrounder
and others



Nov 15 '05 #7
> * Remoted events have a very unpleasant feature - the order in which event
handlers will be called is unpredictable as remoting requests are served on the thread pool. If the event order is not important, you can probably
ignore that warning. But if it IS important, remoting seems to be useless.
Yup.
* Message Queues require MSMQ to be installed, don't they - they are free though?

Don't forget disconnected feature.
* I have used Named Pipes for delivering events across process boundaries
and they work just fine. The only caveat is that you should resort to
P/Invoke to create and initalize both ends of the pipe. Then, the FileStream class constructed from the pipe handle works with the pipe almost as it was a regular file.


Right. Though you can't use them outside intranet as is the case with MSMQ.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
Nov 15 '05 #8
Miha, Dimitriy,

Thanks for your input.
I'll have a look at remoting as well as MSMQ and "named pipes".

wobbles
On Fri, 12 Dec 2003 19:02:11 +0100, "Miha Markic" <miha at rthand com>
wrote:
* Remoted events have a very unpleasant feature - the order in which event
handlers will be called is unpredictable as remoting requests are served

on
the thread pool. If the event order is not important, you can probably
ignore that warning. But if it IS important, remoting seems to be useless.


Yup.
* Message Queues require MSMQ to be installed, don't they - they are free

though?

Don't forget disconnected feature.
* I have used Named Pipes for delivering events across process boundaries
and they work just fine. The only caveat is that you should resort to
P/Invoke to create and initalize both ends of the pipe. Then, the

FileStream
class constructed from the pipe handle works with the pipe almost as it

was
a regular file.


Right. Though you can't use them outside intranet as is the case with MSMQ.


Nov 15 '05 #9

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

Similar topics

3
by: Rick Strahl [MVP] | last post by:
I'm working on an app that's using the WebBrowser control. I got the control working fine, hooking to the document object. But I've run into a major issue with hooking the Document events....
4
by: LP | last post by:
Hello! I am still transitioning from VB.NET to C#. I undertand the basic concepts of Delegates, more so of Events and somewhat understand AsyncCallback methods. But I need some clarification on...
2
by: dave | last post by:
Hi, I have a COM control / server I'm trying to get events from in my c# applications. 1) I'm trying to get events in both c# console apps and in c# winform apps. 2) I can call methods on the...
6
by: gavin | last post by:
hi guys, I have a query about c# event handling that should be obvious I am sure - but I am confused :-) Lets say I have two classes. One is a user control with a tabcontrol on it The other...
0
by: Dave L | last post by:
I just upgraded from VS .NET 2002 to 2003. Everything built okay, but strange bugs started appearing. Apparently there is a bug in the managed C++ compiler in regards to handling of static...
11
by: Nicky Smith | last post by:
Hello, I'm studying a book on VB.net Win apps, and I'm reading a section on events and delegates and raising events. Is it just me, or is this not just subs dressed up as something else? I...
1
by: Nikolay Petrov | last post by:
I am going to write a windows service and i need some info. How is the right way to make it do thing as specified time? Should I use a timer, which checks the time and execute what it have to, or...
14
by: Xah Lee | last post by:
sometimes in the last few months, apparently Microsoft made changes to their JavaScript documentation website: ...
7
by: Robert Cramer | last post by:
Given that Generics are available only in .NET 2.0+ and not in 1.x.... If a .NET 2.0+ event publisher were to make use of System.EventHandler<T>, or otherwise make use of Generics, in its event...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.