[jboss-user] [Microcontainer] - Re: Programmatically deploying an object
mwringe
do-not-reply at jboss.com
Fri May 22 15:58:31 EDT 2009
Ok, lets try this again. And please don't post code from somewhere and refuse to explain it. Looking through the code doesn't help if I don't know in what context to use it :)
The situation is that I need to have access to the servlet context for deployment (see http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228452 and https://jira.jboss.org/jira/browse/JBAS-6865). Until its actually supported properly, I need to find away around it.
If I use a servlet context listener, I can easily get this object when the webapp is initialized. So I know how to get the servlet context indirectly, but the servletcontextlistener is handled by the server and not the microcontainer.
Is there a proper way too add this object as an attachment to the deployment unit for the war? Or to hook this into the microcontainer to do so?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232819#4232819
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232819
More information about the jboss-user
mailing list