Solved

Messaging between apps

Posted on 2006-07-06
5
211 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 500 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

726 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