<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">There's actually a lot of ways to go about this:<div><br></div><div>1) If you're using Spring, then just configure a bean in your app-context.xml.&nbsp;</div><div><br></div><div>2) You could use the new spring-amqp classes:&nbsp;<a href="http://www.springsource.org/spring-amqp">http://www.springsource.org/spring-amqp</a><div><br></div><div><a href="http://www.springsource.org/spring-amqp"></a>3) You could manually configure them from the servlet init method.</div><div><br></div><div>I also run listeners that integrate with the Tomcat server. You can configure them in different ways depending on the context. You could set up a global naming resource, or you could scope it to your web application by putting it in META-INF/context.xml:&nbsp;<a href="http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html">http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html</a><br><div>
<div><div><br>Jon&nbsp;Brisbin</div><div>Portal&nbsp;Webmaster</div><div>NPC&nbsp;International,&nbsp;Inc.</div><br></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On Aug 9, 2010, at 11:33 AM, archana v wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi All,</span><div style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></div><div style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">I am new to rabbit-mq. I would like to know &nbsp;how to start a MQ listner(Java Client) to listen to a queue at the application start up. &nbsp;I am deploying my application in tomcat server.</div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">
</span><div style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Thanks in advance for your help.</div><div style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></div><div style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></div><div style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Thanks and Regards,</div><div style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Archana&nbsp;</div>
_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss<br></blockquote></div><br></div></div></body></html>