[jboss-dev-forums] [Design of JBoss Portal] - Re: ServletContainer.register(ServletContainerContext contex

chris.laprun@jboss.com do-not-reply at jboss.com
Thu Mar 13 13:06:48 EDT 2008


Considering that ServletContainer is supposed to be a static registry for ServletContainerContexts (at least according to the javadoc), it seems natural to me that you should be able to register contexts with it. Also, the ServletContainerContext interface makes several references to such a registration (cf. Registration inner interface for example).
The register method is used by JBossWebContext in Portal.
With the addition of add/removeWebAppListener on ServletContainer, the whole Registration concept seems rather convoluted and seems to make the API more complex than necessary (though I might not have a proper understanding of the big picture).

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

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



More information about the jboss-dev-forums mailing list