Uploaded image for project: 'CXF Distributed OSGi (Retired)'
  1. CXF Distributed OSGi (Retired)
  2. DOSGI-140

Support the registration of multiple bundles sharing the same HTTP context

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.4.0
    • common
    • None
    • Unknown

    Description

      When an application consists of different implementation bundles, it is not possible at the moment to share the same HTTP context which makes it difficult to rely on Servlet container support for sessions, security, etc.

      Note that right now it is possible for a bundle to use a combination of HttpContext and relative ws/rs addresses, example,

      "org.apache.cxf.rs.httpservice.context=/rs" 
      "org.apache.cxf.rs.address="/service"
      

      will lead to "/rs/service" relative base address be created for a given endpoint.

      It should be possible to do

      // First bundle
      "org.apache.cxf.rs.httpservice.context=/rs" 
      "org.apache.cxf.rs.address="/service1"
      
      // Second bundle
      "org.apache.cxf.rs.httpservice.context=/rs" 
      "org.apache.cxf.rs.address="/service2"
      
      

      with both bundles binding to "/service" HTTP context but having different base addresses ("/rs/service1", "/rs/service2").

      Perhaps we can also optimize when only relative ws/rs address property is set, example:

      // First bundle
      "org.apache.cxf.ws.address="/service1"
      
      // Second bundle
      "org.apache.cxf.ws.address="/service2"
      
      

      means that both bundles have to be bound to the default CXF "/cxf" or "/services" context

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sergey_beryozkin Sergey Beryozkin
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: