Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Messaging between apps

Posted on 2006-07-06
5
Medium Priority
?
213 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
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline
Suggested Courses

972 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