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
>