1 Reply Latest reply on Oct 21, 2010 4:03 AM by Willem Jiang

    Common REST server address across multiple OSGI bundles

    Ramesh Ramakrishnan Newbie

      Hello,

       

      I am cross posting my question to different group as its more relevant here.

       

      Is it possible to have a common <cxf:rsServer> address attribute value across multiple OSGI bundles?

       

      BundleA: Can have <cxf:rsServer address="http://localhost:8080/Common" >..

      And Can have following REST methods

      1) POST, REST Path - /testBundleA/testPost

      2) GET, REST Path - /testBundleA/testGet

       

      BundleB: should also have <cxf:rsServer address="http://localhost:8080/Common" >..

      And the following REST methods

      1) POST, REST Path - /testBundleB/testPost

      2) GET, REST Path - /testBundleB/testGet

       

      Reason for multiple OSGI bundle is they all have different business functionality but I want a common server address.

       

      With this setup, when deploying a bundle, the generated WADL file has REST methods of only testbundlesA.

       

      Are there any restriction in having different address for each bundle?

       

      Thanks.