Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-beta3
    • Component/s: HttpCore, HttpCore NIO
    • Labels:
      None
    • Environment:
      -

      Description

      Make the HTTPcore, HTTPcore NIO and HTTPcore NIOSSL libraries available as one (or three) OSGi bundles. See also the wiki: http://wiki.apache.org/jakarta-httpclient/HttpComponentsAndOSGi

      1. osgi-bundle.patch
        16 kB
        Oleg Kalnichevski
      2. apache-httpcore-eclipse-projects-4.0-beta2.zip
        808 kB
        Bill Higgins
      3. apache-httpcore-osgi-bundles-4.0-beta2.zip
        327 kB
        Bill Higgins
      4. MANIFEST.MF
        0.8 kB
        Joerg Bullmann
      5. build.properties
        0.3 kB
        Joerg Bullmann

        Activity

        Hide
        Oleg Kalnichevski added a comment -

        Patch checked in with some minor tweaks

        Oleg

        Show
        Oleg Kalnichevski added a comment - Patch checked in with some minor tweaks Oleg
        Hide
        Oleg Kalnichevski added a comment -

        Folks,
        Here's a patch with a new project module that aggregates both HttpCore and HttpCore NIO into an OSGi bundle using Maven bundle plugin. I am not sure if there are good reasons to put HttpCore and HttpCore NIO into separate bundles, but I am open to alternative opinions.

        Please review and let me know what you think.

        Bill,

        Would it be a big deal for you to verify the bundle generated with the Maven plugin? It will require a little bit of work, though.

        Oleg

        Show
        Oleg Kalnichevski added a comment - Folks, Here's a patch with a new project module that aggregates both HttpCore and HttpCore NIO into an OSGi bundle using Maven bundle plugin. I am not sure if there are good reasons to put HttpCore and HttpCore NIO into separate bundles, but I am open to alternative opinions. Please review and let me know what you think. Bill, Would it be a big deal for you to verify the bundle generated with the Maven plugin? It will require a little bit of work, though. Oleg
        Hide
        Oleg Kalnichevski added a comment -

        > Sorry... I've never used Maven in my life. Maybe someone else can help with that?

        It all depends whether you actually want to learn it. If you have never dealt with Maven before you probably never should

        Oleg

        Show
        Oleg Kalnichevski added a comment - > Sorry... I've never used Maven in my life. Maybe someone else can help with that? It all depends whether you actually want to learn it. If you have never dealt with Maven before you probably never should Oleg
        Hide
        Bill Higgins added a comment -

        > This is a great! Many thanks!

        No problem, thanks for HttpCore

        > It would be absolutely awesome, though, if there was a maven assembly descriptor
        > (or an Ant script) to generate those bundles directly from source.

        Sorry... I've never used Maven in my life. Maybe someone else can help with that?

        Show
        Bill Higgins added a comment - > This is a great! Many thanks! No problem, thanks for HttpCore > It would be absolutely awesome, though, if there was a maven assembly descriptor > (or an Ant script) to generate those bundles directly from source. Sorry... I've never used Maven in my life. Maybe someone else can help with that?
        Hide
        Oleg Kalnichevski added a comment -

        This is a great! Many thanks! It would be absolutely awesome, though, if there was a maven assembly descriptor (or an Ant script) to generate those bundles directly from source.

        Oleg (evil Russian extortionist)

        Show
        Oleg Kalnichevski added a comment - This is a great! Many thanks! It would be absolutely awesome, though, if there was a maven assembly descriptor (or an Ant script) to generate those bundles directly from source. Oleg (evil Russian extortionist)
        Hide
        Bill Higgins added a comment -

        Hi, as per a mailing list discussion (http://www.nabble.com/Integrating-HttpCore-into-the-JEE-OSGi-server-environment-td19059854.html) I've attached two zip files:

        • The first contains Apache HttpCore and Apache HttpCore NIO Extensions as deployable OSGi bundles
        • The second contains Apache HttpCore and Apache HttpCore NIO Extensions as Eclipse projects with the relevant OSGi metadata

        I included the Eclipse projects so people using Apache HttpCore and Eclipse as their IDE could browse the code and step through the code in the Eclipse debugger. Also, this makes it easy for anyone to generate new versions of the OSGi bundles as new versions of HttpCore become available.

        Note I see "three JARs" mentioned above - I only saw two (Core and NIO) so I assume this was just something that changed since October 2007.

        Please let me know if you run into any problems.

        Show
        Bill Higgins added a comment - Hi, as per a mailing list discussion ( http://www.nabble.com/Integrating-HttpCore-into-the-JEE-OSGi-server-environment-td19059854.html ) I've attached two zip files: The first contains Apache HttpCore and Apache HttpCore NIO Extensions as deployable OSGi bundles The second contains Apache HttpCore and Apache HttpCore NIO Extensions as Eclipse projects with the relevant OSGi metadata I included the Eclipse projects so people using Apache HttpCore and Eclipse as their IDE could browse the code and step through the code in the Eclipse debugger. Also, this makes it easy for anyone to generate new versions of the OSGi bundles as new versions of HttpCore become available. Note I see "three JARs" mentioned above - I only saw two (Core and NIO) so I assume this was just something that changed since October 2007. Please let me know if you run into any problems.
        Hide
        Bill Higgins added a comment -

        Zip file containing Apache HttpCore and Apache HttpCore NIO Extensions packaged as Eclipse projects with OSGi metadata

        Show
        Bill Higgins added a comment - Zip file containing Apache HttpCore and Apache HttpCore NIO Extensions packaged as Eclipse projects with OSGi metadata
        Hide
        Bill Higgins added a comment -

        Zip file containing Apache HttpCore and Apache HttpCore NIO Extensions packaged as deployable OSGi bundles

        Show
        Bill Higgins added a comment - Zip file containing Apache HttpCore and Apache HttpCore NIO Extensions packaged as deployable OSGi bundles
        Hide
        Roland Weber added a comment -

        Hello Jörg,

        thanks for the manifest, that will be useful to compare with. For the records, we will continue to ship HttpCore in three separate JARs. If we get around to add OSGi metadata, each JAR will become a separate bundle. We're not going to create extra deliverables for OSGi.

        thanks,
        Roland

        Show
        Roland Weber added a comment - Hello Jörg, thanks for the manifest, that will be useful to compare with. For the records, we will continue to ship HttpCore in three separate JARs. If we get around to add OSGi metadata, each JAR will become a separate bundle. We're not going to create extra deliverables for OSGi. thanks, Roland
        Hide
        Joerg Bullmann added a comment -

        Corrected previously attached manifest file.

        Show
        Joerg Bullmann added a comment - Corrected previously attached manifest file.
        Hide
        Joerg Bullmann added a comment - - edited

        I have created an org.apache.httpcore Eclipse plugin the quick and dirty way: I threw the complete content of the project-trunk/httpcore folder into an empty Eclipse plug-in project and then adjusted paths, added the exported packages, etc. The attached files are the resulting OSGi manifest and Eclipse's build properties file. I post these here just in case the info in there might be of any assistance.

        Show
        Joerg Bullmann added a comment - - edited I have created an org.apache.httpcore Eclipse plugin the quick and dirty way: I threw the complete content of the project-trunk/httpcore folder into an empty Eclipse plug-in project and then adjusted paths, added the exported packages, etc. The attached files are the resulting OSGi manifest and Eclipse's build properties file. I post these here just in case the info in there might be of any assistance.

          People

          • Assignee:
            Unassigned
            Reporter:
            Joerg Bullmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development