Hi,
yes, you can take a look on:
https://github.com/jbonofre/karaf-boot/tree/master/karaf-boot-samples/karaf-boot-sample-servlet
Basically, the easiest way is to use the @WebServlet annotation, and
install the http-whiteboard feature.
The http-whiteboard feature will "listen" for servlet and expose in the
Karaf WebContainer.
Regards
JB
On 03/23/2016 03:47 PM, Alioune wrote:
Hi All,
I am trying to run a servlet in karaf contaire, I have successfully done
that using ServiceTracker.
Now I would like to set a filter for the servlet, but I have no idea
about doing that with ServiceTracker.
I have a few questions :
1: are there others ways than ServiceTracker to run servlet in karaf ?
2: How may I create a filter for servlet running in karaf ?
3: Is there a mean to use the default web.xml ?
Regards,
--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com