Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Servlet 3.0 fragments and META-INF/resources

We would certainly take advantage of this when installing web-bundles in OSGi:
The web-bundle would declare the bundles inside which there are
annotations to look for.
It would support annotations contributed by other bundles.
Not something standardized in the OSGi entreprise spec at this point.

Hugues

On Fri, Apr 15, 2011 at 10:13 PM, Jesse McConnell
<jesse.mcconnell@xxxxxxxxx> wrote:
> Maybe a new Configuration type altogether for embedded situations
> would be in order.  This isn't really servlet 3.0 api behavior anymore
> so we could pretty much do anyway we wanted for doing it..
>
> cheers,
> jesse
>
> --
> jesse mcconnell
> jesse.mcconnell@xxxxxxxxx
>
>
>
> 2011/4/15 Eirik Bjørsnøs <eirbjo@xxxxxxxxx>:
>>> I agree we should think of a way to make it easier to use with
>>> non-standard webapp deployments, such as an embedded scenario.
>>
>> Jan,
>>
>> Sounds good! Ideally it should work out of the box, but I'm happy if
>> there's a setter on WebAppContext or even an attribute read by
>> WebInfConfiguration which will tigger Servlet 3.0 to work with jar
>> outside WEB-INF/lib.
>>
>> Normally I would contribute a patch, but in this case it's more about
>> finding the right place to put such configuration in consistence with
>> other options than actually making it work.
>>
>>> While
>>> that's happening, if you subclass WebInfConfiguration and override the
>>> protected List<Resources> findJars(WebAppContext c) method to return
>>> the set of jars you want to use, then all should be well. You can use
>>> one of the WebAppContext.setConfigurations() or
>>> WebAppContext.setConfigurationClasses() methods to introduce your
>>> WebInfConfiguration subclass.
>>
>> So do you think we could implement this with an attribute? Something like
>>
>> webAppContext.setAttribute(WebInfConfiguration.FIND_JARS_OUTSIDE_WEBINF_LIB,
>> true);
>>
>> Btw. Doesn't WebInfConfiguration.CONTAINER_JAR_PATTERN do something similar?
>>
>> I've filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=342972 for
>> keeping track of this.
>>
>> Eirik.
>> _______________________________________________
>> jetty-dev mailing list
>> jetty-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>>
> _______________________________________________
> jetty-dev mailing list
> jetty-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>


Back to the top