473,658 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using .Net Remoting for messaging, Help Needed

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 an event or an interface.?
I thought of using .Net remoting for that, i have no experience with
..NET remoting and appreciate any help.

Few of my questions:

1. How can I identify the clients, how do i send a specific message to
a specific client.

2. Is the listened needs to be a service?

3. Does anyone have a link or example for something similar?

Thanks you

S.Creek

Nov 17 '05 #1
3 2082
Remoting is a technology to handle your communications layer primarily.
Whether or not you use Queues, the decision to use remoting is a separate
beast. If you haven't used Remoting and/or DCOM, it's WELL worth your time
to learn but I will caution you, you won't get there without some
determination, persistence and a lot of commitment.

1) There are a ton of ways you can know who's listening. You can use
Remoting to create an object and then wire up an event handler for on of
that object's events. However there are a lot of other ways taht are
probably a lot better suited for someone just getting started in this area.
The easiest of which is trapping the app start event and then writing a db
record indicating that you are listening. You can remove the record when
you're done. You'll need to handle situations where the app may close but
the message doesn't get sent to the db for whatever reason, so you can poll
or use some interval to verify the client is still listening and remove the
subscription accordingly. I could write chapters on this subject b/c it
really depends on a lot of factors, but basically you want to implement a
version of publisher/subscriber.

2) No but it may make a good candidate.You can have an application start
whenever someone logs one by putting it in the startup folder for instance.
But with Sql Server, this wouldn't be a very good solution b/c if the power
went out, someone would have to show up and log onto the machine to get it
running again. This would waste time and pose a whole slew of other
problems, the least of which is security.

3) The situation described comes up quite a bit in Distributed Architecture
scenarios and if you google on "Service Oriented Architecture" +
"Messaging" , I think you'll probably find quite a few.

I'll see what I can find for you though.

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"S.Creek" <od****@gmail.c om> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
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 an event or an interface.?
I thought of using .Net remoting for that, i have no experience with
.NET remoting and appreciate any help.

Few of my questions:

1. How can I identify the clients, how do i send a specific message to
a specific client.

2. Is the listened needs to be a service?

3. Does anyone have a link or example for something similar?

Thanks you

S.Creek

Nov 17 '05 #2
Not sure why you refer to remoting here, if you are using MSMQ why not use
the infrastructure of MSMQ to forward or pick-up the messages, you simply
don't need remoting for this.

Willy.

"S.Creek" <od****@gmail.c om> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
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 an event or an interface.?
I thought of using .Net remoting for that, i have no experience with
.NET remoting and appreciate any help.

Few of my questions:

1. How can I identify the clients, how do i send a specific message to
a specific client.

2. Is the listened needs to be a service?

3. Does anyone have a link or example for something similar?

Thanks you

S.Creek

Nov 17 '05 #3


Thanks for the answers

the reason i thought of using Remoting is :

i have multiple clients that needs to listen on the same queue, where
the server puts its messages to them.

i need to handle messages and transfer them to the relevant clients,
messages are not always a response, sometimes they are invoked by the
server.

on the other hand all clients are running on the same computer as the
server.

i implemented a Listener for MSMQ , the problem is that it has a
different instance for each client, and then i have a race condition for
the messages in the Queue, not talking about what if message is
addressed to all clients,

i will be happy to hear more ideas if you have how to solve that
problem,

Thank you

S


*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #4

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

Similar topics

2
1371
by: Janus Knudsen | last post by:
Hello Im collecting ideas for a piece of software I've in mind. I need to create an application which can be started with some parameters, the application have to be started in many instances and on many servers. Every instance has a special job to fullfill, think of the instances as small robots - a robot farm or something like that. Every robot should be able to tell for instance when its idle, when its running etc..
1
1424
by: Skip | last post by:
Hi, I get the following exception thrown when I try to run my code: "An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed."
2
1321
by: Picho | last post by:
Hi group, this issue has been brought up a few times now. I am starting to design a client-server application. I do not see any x-platform activity in the future of my application. I understand from various people, articles and posts that remoting is highly discouraged at this point and that we should favour web services with respect to future programming models including .net 2.0 (which I have no
6
2414
by: Guest | last post by:
Hi, I unerstand that if you choose IIS to host your .Net Remotingcomponents with HTTP channel and SOAP formatter, you get thebuilt-in security and configuraion features of IIS. Also we canexpose it to use for the web services clients. But using HTTPwith SOAP has got the least performance amoung all others (exTCP with Binary etc). The question is what are the advantages of using http with SOAPover http with Binary formatter? What are the...
8
1748
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged package) to .NET. Our clients have been asking for lot of new stuff namely being able to send patient information to devices, being able to fix appointments online, etc.
13
6177
by: Brosto | last post by:
Hello, I'm writing a server client application and I'm having a terrible time getting one section to work. This is my first time using .net remoting, so please bear with me if I'm doing something incorrectly. To give a brief layout of my program, the server side hosts a series of functions for running tests, this server application will run on four separate boxes. My client application has access to all four of the server...
1
1358
by: Dan Holmes | last post by:
I traced this all the to the domain boundary. I also but a breakpoint in the server. That was never hit. It happens after it leaves the client but before it calls into the "add" method in the server. I don't know how to debug this any further. exact error message and code follows this is what fails. it fails on the add. TestContactInfo tci = new TestContactInfo(); tci.Address1 = "address1";
0
938
by: demc | last post by:
Hello guys, first I would like to say, that I've been googling (ex. link ) about this problem for quite a while but I just couldn't find enough information. Maybe it's because I'm totally new in .net remoting world :) So could you please direct me to documentation and/or technology that makes it easy to connect windows application (GUI/client) to windows service. I'm looking for more object related solution rather than socket messaging....
0
1270
by: =?Utf-8?B?U3RldmUgRw==?= | last post by:
I have a VB6 ActiveX exe application that uses a .Net DLL that is exposed as a COM DLL. The VB6 application is stored in ParentFolder. The .Net DLL is stored and registered in ChildFolder. I have several other .Net DLL's (Com exposed) loaded in ParentFolder that are used by the VB6 app. I have 2 setup programs to install the software. The main server software is in ParentFolder, the optional special software is loaded to ChildFolder only...
0
8427
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8330
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8626
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1737
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.