Skip to main content



      Home
Home » Eclipse Projects » Equinox » getHttpService()
getHttpService() [message #69510] Wed, 05 July 2006 17:23 Go to next message
Eclipse UserFriend
Originally posted by: ksshams.gmail.com

Hello,
I am reading the R4 Service compendium, and I had a quick question
about 102.2: Registering servlets. The sample code gets an instance of
HttpService class by calling the method getHttpService(). Which class
does this method belong to? How do I invoke it? Thank you for your time
and help.

Regards,
Khawaja Shams
Re: getHttpService() [message #69555 is a reply to message #69510] Mon, 10 July 2006 14:05 Go to previous message
Eclipse UserFriend
Originally posted by: skaegi.sympatico.ca

Hi Khawaja,

getHttpService() is not a method in the HttpService interface. It's used
in the spec so as to not commit to any one approach as there are many ways
one might choose to get an HttpService instance.

e.g. you might use the methods on BundleContext directly or a
ServiceTracker, or Declarative services or ...

I think what you might really be after is a sample that shows how you
might use the service. I'll post something up on the web site when I have
a minute.

-Simon
Previous Topic:CM implementation
Next Topic:how to write an serlvet bundle in OSGI ?
Goto Forum:
  


Current Time: Wed Apr 30 12:04:10 EDT 2025

Powered by FUDForum. Page generated in 0.07050 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top