You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Joseph Prosser <jp...@nocmanage.net> on 2004/07/27 18:15:00 UTC

[Messenger] No MessageListener is defined for subscription:

Hi Folks,
I have an HttpServlet running within tomcat4 + Jboss-3.2.3 and I want it
to receive JMS messages.

The HttpServlet:
public class ImageServlet extends HttpServlet implements MessageListener

calls      MessengerManager.configure( "ManagerJBoss.xml"); in its init().

I am using the standard MessengerJBoss.xml, and I have included in the
subscriptions.xml a reference to the JBoss queue that I am writing to from
another application.

<?xml version="1.0" encoding="UTF-8" ?>
 <subscriptions>
  <subscription connection="queue" subject="queue/A">
    <servlet>/web-client/ImageServlet</servlet>
  </subscription>
</subscriptions>

When I try to deploy it, I get:
javax.jms.JMSException: No MessageListener is defined for subscription:
org.apache.commons.messagelet.model.Subscription@1d06
3fd[ connection: queue subject: queue/A servlet: /web-client/ImageServlet


If you had any ideas, I would sure love to hear them.  There is not much
to go on here, if anyone had a pointer to an example HttpServlet, that
would be most cool.

Thanks!
-Joe Prosser


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org