473,840 Members | 1,479 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 2088
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
1379
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
1437
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
1331
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
2422
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
1757
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
6195
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
1366
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
943
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
1284
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
9856
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
10916
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...
1
10657
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
7836
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5684
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4071
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3136
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.