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 <
https://issues.jboss.org/browse/AS7-351> which also has
resource registration
<
http://www.osgi.org/javadoc/r4v42/org/osgi/service/http/HttpService.html#...
as a requirement.
I'll look into replacing the DirContext as a work around.
cheers
-thomas
On 11/02/2011 08:44 PM, Remy Maucherat wrote:
On Wed, 2011-11-02 at 13:12 -0500, Jason T. Greene wrote:
> Oh duh I see what you mean. You want to be able to load resources
> *without* changing that call.
>
> In that case you can just plug in your own DirContext impl.
Ah ok, so if it's only about the resources from the servlet context and
not the whole servlet context impl, then it must still be about the
supposed need to have real static files for the juddi webapp.
Indeed, static resources are served from DirContext which can come from
files or VFS. It is also possible to take advantage of the overlays from
Servlet 3 (which are exposed).
But rather than do one of these, would it be possible to be reasonable
and drop that webapp ? ;)
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx