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?
posted 7 years ago
It is not possible and doesn't make such sense. Use an MDB instead.
Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1