Hi Gerald,

the camel servlet component contains a CamelHttpTransportServlet. You need to 
register this Servlet with the web container (once per container, not once per 
endpoint).

There is also a OsgiServletRegisterer in this bundle, which can register the 
servlet with the OSGi HTTP service, which you can use, or you can create a WAB 
with a web.xml for that.

You do the port and the HTTPS configuration with the embedded web container in 
Karaf (e.g. the Jetty server). Authentication is configured for the web context 
(which might be a bit tricky for a HTTP service context, which is why the 
web.xml path might be easier).

Best regards
Stephan

From: Gerald Kallas - mailbox.org <[email protected]>
Sent: Sonntag, 3. Mai 2020 21:36
To: [email protected]
Subject: camel-servlet configuration of port, ssl, basic auth?

Dear community,

as camel-jetty underpinning securityHandler seems to lack of re-usability 
(https://issues.apache.org/jira/browse/KARAF-6700,https://issues.apache.org/jira/browse/CAMEL-15000<https://issues.apache.org/jira/browse/KARAF-6700,https:/issues.apache.org/jira/browse/CAMEL-15000>)
 I'm going to setup a http consumer based on camel-servlet following 
https://camel.apache.org/components/latest/servlet-component.html(OSGi 
Blueprint).

I wonder if someone could share the experience how to define

- port number
- SSL properties
- basic auth properties

Thanks in advance
- Gerald

Reply via email to