[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Servlet depending on MBean: loading order

sanches do-not-reply at jboss.com
Wed Jul 1 14:04:19 EDT 2009


PeterJ, thanks a lot!
This is correct solution.

That way I am also able to use
		<load-on-startup>1</load-on-startup> 
in web.xml

I had tried adding similar construction before (but as injection into servlet), and it did not work:

  | @Depends({"-the mbean name goes here-"})
  | public class JMSEventListenerServlet extends HttpServlet {
  | ..
  | 
I did get error about not bound JNDI name (that was JMS resource, actually)

Could you explain please what is the difference between your working solution and that one, which is not?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241264#4241264

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241264



More information about the jboss-user mailing list