And.. I highlighted this issue and a possible, extensible workaround in a previous mail you sent regarding Solr.
<quote> Srinath - As far as I know, the present version of OSGi doesn't support servlet filters, since it ships an old version of the Servlet API. Shindig handles OAuth using the method you suggested above. But at the moment it's not working due to the lack of Servlet Filters. The closest way (at least the way I see it) to mimick Servlet Filter functionality is via the CarbonSecuredHttpContext in the UI framework. Because every single request in a Carbon Server goes through this code, we can inject Filter functionality there. If we have a standard interface that Filter authors can implement and then mention it in the component.xml, CarbonSecuredHttpContext can make sure every request goes through this code and handle whatever responses coming from that code. But the downside is that all this work will be redundant when we upgrade to the next OSGi version, which has a newer Servlet API with filters. WDYT? Tyrell </quote> So.. WDYT? Tyrell On Fri, Sep 4, 2009 at 5:56 PM, Afkham Azeez<[email protected]> wrote: > Srinath, > The OSGi specs are not going to support the newer Servlet API concepts > for the foreseeable future. This is not an Equinox limitation > > Azeez > > On Fri, Sep 4, 2009 at 1:57 AM, Srinath Perera<[email protected]> wrote: >> Hi All; >> >> I am having trouble integrating Solr because it depends on a >> ServeltFilter for functionality (for basic functionality, not for >> security). However, AFAIK, carbon servelt support (think culprit is >> equinox) does not support filters. >> >> Right now we support some level of filtering through hard coding >> filter logic in to "CarbonSecuredHttpContext" (Please have a look at >> the CarbonSecuredHttpContext.java, you will see what I mean). IMHO >> this is a very bad way to do it, and it negates the advantages of >> carbon by requiring us to go and change the >> CarbonSecuredHttpContext.java when we add a bundle that need filtering >> (e.g. solr integration need a change). >> >> Is it possible to support servelt filters (or equivalent) in the near >> future? Do anybody know a way to work around this? >> >> Thanks >> Srinath >> >> >> -- >> ============================ >> Srinath Perera, Ph.D. >> WSO2 Inc. http://wso2.com >> Blog: http://srinathsview.blogspot.com/ >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> > > > > -- > -- > Afkham Azeez > [email protected] > WSO2 Inc. http://wso2.com > Blog: http://afkham.org > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > -- Tyrell Perera WSO2, Inc.; http://www.wso2.com/ "The Open Source SOA Company" http://www.linkedin.com/in/tyrell http://tyrellperera.blogspot.com http://twitter.com/tyrellperera _______________________________________________ Carbon-dev mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
