Solved

Messaging between apps

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now