[jboss-as7-dev] Loading resources through JBWeb context API

Remy Maucherat rmaucher at redhat.com
Mon Nov 7 08:54:10 EST 2011


On Thu, 2011-11-03 at 17:05 +0100, Remy Maucherat wrote:
> On Thu, 2011-11-03 at 15:09 +0100, Thomas Diesler wrote:
> > Hi Remy, 
> > 
> > I think it is reasonable to ask for a clean API to setup a web context
> > that includes servlet and resoure registration. May I remind you about
> > AS7-351 which also has resource registration as a requirement.
> 
> One thing that I find confusing is if the whole HttpService is supposed
> to be one big webapp.
> 
> > I'll look into replacing the DirContext as a work around.
> 
> There's an existing VFSDirContext implementation. The overlays (which
> are defined in WarMetaData) are straight VirtualFile objects and are
> using it, so it should work fine for you.
> 
> What should be added then is a "parent" DirContext to handle the aliases
> if everything is supposed to go in a single webapp.

So is the right design using a DirContext that do the alias list for the
register resources ?

-- 
Remy Maucherat <rmaucher at redhat.com>
Red Hat Inc



More information about the jboss-as7-dev mailing list