Notifying JMS Message sender (Web App) after message processed by Listener

Posted by blob on Stack Overflow See other posts from Stack Overflow or by blob
Published on 2011-01-14T04:59:58Z Indexed on 2011/01/14 6:53 UTC
Read the original article Hit count: 275

Filed under:
|
|

I have a Web application (Flex 4 - Spring Blaze DS - Spring 3.0) which sends out an JMS event to a batch application (Standalone java)

I am using JMS infrastrucure provided by Spring (spring JmsTemplate,SimpleMessageListenerContainer,MessageListenerAdapter) with TIBCO EMS.

Is there any way by which we can notify a web user once message processing is completed by listener.

One of the way to send a response event which will be listened by web application; but how to address following scenario:

  1. User1 click on submit -> which in turn sends a JMS message
  2. Listener on receiving message processes the message (message processing may take 20-30 mins to complete).
  3. Listener application sends out another JMS event "Process_complete"
  4. As this is a web application; there are n users currently logged into the application. so how to identify a correct user / what if user is already logged off?

Is there any way to handle this?

Please post your views.

© Stack Overflow or respective owner

Related posts about java

Related posts about spring