Solved

Messaging between apps

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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