checking messages in the queue

For my project I need to create the popup window as soon as the message comes into the queue ..For example ,, like in the yahoo messanger if you will make login to it and if some mail come into your inbox you will get the popup window that this and this mail came in ur inbox...

So help me in this egrad and also suggest also me some good jms site where I will get the advance reading material for the jms so that I got some idea to solve the issues like it..

Thanks

[485 byte] By [Milind.Chaudharia] at [2007-11-26 18:07:56]
# 1

Hi,

Ok, a couple of things first. I assume you are talking about using a JMS based message queue implementation for your queue, not a home-grown one. Typically, JMS is an asynchronous protocol where the messages sent to a message queue are processed most often, in first-in-first-out order but not always. It would be wise here to ignore when messages are sent to the queue and rather deal with them when they are retrieved from the queue.

A large part of the architecture missing here though is how are you going to deal with the responses / session to the asynchronous queue? Assuming the message contained some data that could relate it to a user, the message consumer could persist the details of the message which could be retrieved via client polling.

Since you mentioned Yahoo! Messenger, I take it that you client is an application client too rather than a web based one. If this is the case, and you are trying something such as the email example you gave, I think JavaMail would be a far less complex solution.

Anyway, http://java.sun.com/products/jms/tutorial/ is the JMS tutorial from Sun. If you are using a Java EE container based implementation look for the Java EE tutorials which have more relevant JMS info too.

simonkent1a at 2007-7-9 5:39:27 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

My application has been designed to send the data between 2 diffrent applications in distrubuted envoirment .And this product has been designed for the retailers..So I want to show the status to the end user who is using this product that how much the transactions are sucsseful/unsucssesful depanding on the status and need the auto updation of the table as soon as the mesage in the queu comes ..So thar there is no need of having the refresh button on the screen......So it is almost a same scenario as like yahoo messager where automatic pop window u got on screen when the message come on the scree.

May be soemthing like auto message handlling by the user ..Soemthing like Evnet-Driven messaging consumer..I am not cealr abt this concept but I need to do it somwthing like it\.

Thanks....

Milind.Chaudharia at 2007-7-9 5:39:27 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...