?
Solved

Messaging between apps

Posted on 2006-07-06
5
Medium Priority
?
212 Views
Last Modified: 2010-04-23
HI, i am planning to include a messaging feature in my app. So that the different users on the network using the app can send messages to each other. The messages are not instant messages, they are to be act like email which can be sent to user even when they are not on the network but the app need to alert the user when there's a new message.

I am thinking of using MSMQ for this but can i create all queues on a machine?
say...when user logs in machine A and creates a public queue on Machine B which will always be on so the queues will be accessible at any time.

Instead of checking for new messages in the background in a loop, are there any better ways to get notified when there's a new message in the queue?
0
Comment
Question by:jaxrpc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
Tertioptus earned 2000 total points
ID: 17050377
scenario:
machine A is logged in
machine B is logged off

machine A (already knows of machine B) stores a message for machine A locally in a mailbox named (machine B)

machine B logs in
machine B broadcasts it's arrival
machine A checks to see if machine B has anything in it's mailbox
   if yes, machine A sends all messages to machine B
__________________________________________________________
Summary:
I think their has to be a queue somewhere.  In what I think you are trying to accomplish (which is a nice design by the way), the best way is for every client app to also be somewhat of a self managed postal service.  Much like IM in that you must maintain a directory of other users/IPs, such that you can switch from real to virtual conversation seamlessly.  And for each record in that directory, there should be a mailbox.

If this is supposed to be an entirely P2P system, then the client's broadcast should try and send a small notification to everyone in it's directory.

Machine A should not empty it's mailbox for Machine B until Machine B confirms that it recieved each of the messages.

0
 
LVL 5

Expert Comment

by:Tertioptus
ID: 17215164
Is the solution that I offered useful?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question