This content has been marked as final.
Show 2 replies
-
1. Re: How to use Microcontainer with tomcat (not jboss)
vickyk Sep 15, 2006 1:04 AM (in response to lyo)I think what you can do is have the Servlet defined in the web.xml , this should be the startup servlet .
In the init of the servlet you could then have the code which will read the jboss-beans.xml file as you do in the sample simple example ...
Does this make sense , I have not tried this my self .
Vicky -
2. Re: How to use Microcontainer with tomcat (not jboss)
vickyk Sep 15, 2006 3:20 AM (in response to lyo)Oh what I can understand after rereading the post is that you are going to inject the properties in the Servlet .
What you should do is have a set of dependent beans getting configured though the servlet and make them available though the session/page/application scope depending on your requirement. I think that is better approach.
Regards
Vicky