p.s. One thing I should point out, since you reference FELIX-538, is
that this issue is for a "really lightweight" HTTP Service. So, all of
the stuff you are discussing (i.e., iPOJO, Grizzly, Servlet 2.5, plus
extensions) does not really fit into this definition; however, that
doesn't mean that you shouldn't do it, do what interests you. But if you
are interested in addressing this issue, then it probably will require
that you don't use these technologies. This JIRA issue references a
file-based http server in my sandbox that is only about 6 or 7 files, I
think this might be a good place to start for a really lightweight HTTP
Service implementation.
richard jackson wrote:
After I finish off learning what I need to know about felix I want to tackle
writing a OSGi HTTP Service bundle. But I have a few questions about what
can be included in this bundle if I want to contribute it to Felix:
1) Can it contain out side code? In particular I'm thinking about Grizzly (
https://grizzly.dev.java.net/ ). This is the front end used in both Jetty
and GlassFish which means it is already heavily tested and why reinvent the
wheel if I don't have to. The potential problem is that it is under the CDDL
and was not sure if that License is ok for a Apache project.
2) Is there a problem with extending the spec for this? For instance can I
expose a spec compliant service but also expose a enhanced service? Kind of
like what the Pax Web bundle does (see
http://wiki.ops4j.org/confluence/display/ops4j/Pax+Web+-+Http+Service+Extensions).
3) Can I use iPOJO for the service? Or do I need to just do it myself? This
is not a issue I was just wondering as again why code it up by hand if I can
just get iPOJO to do it for me. But then again maybe iPOJO can't do what I
will need for HTTP Service ( I'm still learning what it can do still haven't
got far enough to know what it can't do )
4) The spec states that the HTTP Service must implement at least Servlet
spec 2.1 (If I remember correctly that is) whould implementing Servlet Spec
2.5 satisfy the requirement? Yea I know maybe a stupid question but still
wanted to ask as I don't want to wast my research time if I don't have to.
Want to get the spec part done first before trying to do the added stuff I
want/need. If I have to do Servlet spec 2.1 does anyone know where I can
find the spec. I have only been able to find 2.3 and newer.
I'll have more questions as I look into doing this but for now that covers
the basics. (I have packaging questions as well but those questions depend
on answers to some of the questions)
Thanks
Richard Jackson