dcsimg
Can Servlets receive Asynchronous JMS messages?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shashank_Mehrotra
Posted On:   Friday, February 15, 2002 08:57 AM


1. Is is possible for a servlet to regsiter some sort of event listener such that it reponds asynchronously to the onMessage() call?

Re: Can Servlets receive Asynchronous JMS messages?

Posted By:   Bozidar_Dangubic  
Posted On:   Friday, February 15, 2002 09:25 AM

theoretically speaking probably, but you should not do that. it is not a good design. remember that servets are request-response mechanism. you send a request to the servlet and it gives you a response. so use it for what it is designed for. otherwise it is very hard to predict what can happen. theoretically, servlet is a java class. all rules that apply to java classes apply to servlets as well. so you can probably get away with registering servlet as a JMS listener but that is a horrible solution to your design problems. use servlets for what they are designed for. the same goes for any other J2EE technology that you plan to use. use it within its scope. that should be your starting point for design considerations.
About | Sitemap | Contact