tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "G.L. Grobe" <g...@grobe.net>
Subject servlet resource mapping - jms queue
Date Tue, 12 Feb 2002 00:57:30 GMT
Anyone know how to map a JMS queue to a servlet? I'm guessing it's w/ a
<resource-ref> tag, but now sure how to fill it out, or where it goes.

I've got a servlet as follows in my web.xml ...
---
   <servlet>
      <servlet-name>Streamer</servlet-name>
      <servlet-class>com.mydomain.servlets.Streamer</servlet-class>
   </servlet>

   <servlet-mapping>
      <servlet-name>Streamer</servlet-name>
      <url-pattern>Streamer</url-pattern>
   </servlet-mapping>
---
So when a queue ("queue/streamer") starts to receive msgs (my servlet
implements MessageListener) then I can have my servlet *do stuff* with those
msgs.

Any help much appreciated.


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message