• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using a servlet as jms.MessageListener

 
Sandareka Fernando
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to use a sevlet as a jms.MessageListener where the message produser is a EJB.Is this possible? If it is possible, how can I specify the destination using sun-web.xml (I'm using GlassFish V2)? Or is there a way to specify message destination in servlet using annotations?

Thanks.
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandareka,

It is not possible and doesn't make such sense. Use an MDB instead.

Regards,
Reza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!