2 Replies Latest reply on Aug 19, 2012 11:48 PM by Willem Jiang

    need to get the BundleContext instance in my soap webservice class

    shachi shachi Newbie

      Hi All,

      I have created soap webservice(using cxf - jaxws), auhenticatewebsevice(bundled as jar)

      I need to invoke the getUsers method of some other bundle ex: security(which is war bundle)..

      I have some of the classes of 'security' bundle exposed as osgi:service beans in that bundle.

      In my 'authenticatewebservice' bundle I need the bundleContext  to get the reference for those beans to acccess the getUsers() ..

      how to get the bundleContext instance in my webservice?

      the beans are exposed as osgi:service in 'security' bundle....I tried referring those beans in my 'authenticatewebservice' bundle

      inside bundle-context-osgi.xml using  tag...but no luck ..

      how to get the instance of bundleContext in my webservice class to get those beans..Any help/example greatly appreciated....

      Thanks in advance,

       

      Shachi