It's not a secret anymore!
The moose likes EJB and other Java EE Technologies and the fly likes Is it possible to Make Servlet act as JMS Message listener? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Is it possible to Make Servlet act as JMS Message listener?" Watch "Is it possible to Make Servlet act as JMS Message listener?" New topic
Author

Is it possible to Make Servlet act as JMS Message listener?

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
Is it possible to Make Servlet act as JMS Message listener?
If yes then how?
If no then why?

Please reply.
Thankyou


Regards
Azrael Noor
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10433
    
176

Azrael Noor wrote:Is it possible to Make Servlet act as JMS Message listener?


Why do you want a servlet to listen to some JMS message instead of services requests? I mean why do you want it to be a servlet as well as a message listener?


[My Blog] [JavaRanch Journal]
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
1) I do not want Multiple MDB's.
2) Using @Resource i could mapped multiple connections and Destinations inside servlet and use it for ma work.
3) i have to show output in form of web application.

Question again is it possible or not? if yes then how

thank you

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
Servlet can listen it. but it will not behave same as MDB and behavior randomly changes,
have to deploy more then one and so on so not good approach

Thank you
topic Closed
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Is it possible to Make Servlet act as JMS Message listener?
 
It's not a secret anymore!