I guess if you want a servlet registered in the service registry this is typically to have it picked up by something like the Http Whiteboard implementation. For that you cannot register it under HttpServlet but it has to be registered as a javax.servlet.Servlet. I'm not familiar with the iPojo annotations, but I guess the above example would need to be tweaked in such a case...
Cheers, David On 13 February 2015 at 15:58, clement escoffier <[email protected]> wrote: > Hi, > > If you just want to register your service just do this: > > @Component > @Provides > @Instantiate > public class MyServlet extends HttpServlet { > ... > } > > @Component declares a component type, @Provides tells to iPOJO that your > component is providing a service, and @Instantiate create an instance of > this component. > > Cheers, > > Clement > > > 2015-02-13 15:43 GMT+01:00 Ascharya Shetty <[email protected]>: > >> I have been struggling to use the right brew of annotations to get the >> servlet registered as a service using iPojo.Please let me know how can I do >> this? >> Thanks >> Ascharya >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

