Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
5 replies Latest Post - ‏2012-10-31T15:33:38Z by Graham_Charters
SystemAdmin
SystemAdmin
590 Posts
ACCEPTED ANSWER

Pinned topic OSGI HttpService

‏2012-10-24T07:03:04Z |
Hi,

I am using OSGI in liberty profile. Is OSGI HttpService is available in OSGI Runtime?
  • SystemAdmin
    SystemAdmin
    590 Posts
    ACCEPTED ANSWER

    Re: OSGI HttpService

    ‏2012-10-25T19:16:10Z  in response to SystemAdmin
    Hi Ravi,
    I'm afraid the OSGi HTTP service is not available in the liberty profile.
    Regards, Alex.
    • SystemAdmin
      SystemAdmin
      590 Posts
      ACCEPTED ANSWER

      Re: OSGI HttpService

      ‏2012-10-29T06:56:34Z  in response to SystemAdmin
      Hi Alex,

      Thanks for your reply, is it available in Websphere application server? or is it not available only in liberty profile?
      Currently I am using httpservice as specified below
      http://ralfzahn.wordpress.com/2011/05/14/using-the-osgi-http-service-on-ibm-websphere-application-server/

      Any inputs or comments ?
      • SystemAdmin
        SystemAdmin
        590 Posts
        ACCEPTED ANSWER

        Re: OSGI HttpService

        ‏2012-10-29T13:14:33Z  in response to SystemAdmin
        WebSphere Application Server does not provide an implementation of the HTTPService specification in either the full profile or the liberty profile.

        Thanks
        Alasdair
        • SystemAdmin
          SystemAdmin
          590 Posts
          ACCEPTED ANSWER

          Re: OSGI HttpService

          ‏2012-10-30T11:02:40Z  in response to SystemAdmin
          Is there any way to get HttpService reference ?
          • Graham_Charters
            Graham_Charters
            14 Posts
            ACCEPTED ANSWER

            Re: OSGI HttpService

            ‏2012-10-31T15:33:38Z  in response to SystemAdmin
            Hi Ravi, I'm not sure what you mean by "get HttpService reference". Could you please elaborate.

            I'm aware of Ralf's blog on how to get the equinox http service implementation working in WAS. I've not tried this approach on the Liberty Profile. As others have stated, we don't support the HttpService, but Ralf's blog enables it as part of the application, so that's really up to you if you want to go that route. The HttpService is pretty popular, and personally I like what others have done to extend it with whiteboard pattern support for servlet registration. If you'd like us to consider adding HttpService support, could you please raise a request for enhancement (http://www.ibm.com/developerworks/rfe/). Many thanks.
            Regards, Graham.