Hi JB,

I started playing around with this. I tried using the camel-servlet. I
decided to try and register the CamelHttpTransportServlet by using DS to
get a HttpService and registerServlet. I realized that camel 4x is now
using EE9 apis so these are jakarta not javax. Could this be why it's
not registering?

Thanks,

Chaz


On Wed, Jun 18, 2025 at 11:38:37AM +0200, Jean-Baptiste Onofré wrote:
> Hi
> 
> We should add a wrapper in camel-Karaf to use existing Karaf http
> connectors.
> 
> By default the camel components create a new connector.
> 
> Let me try something quickly here.
> 
> Regards
> JB
> 
> Le mer. 18 juin 2025 à 00:45, Chaz Kettleson
> <apache-karaf-...@pyr3x.com.invalid> a écrit :
> 
> > Hello,
> >
> > I'm using Camel 4x on Apache Karaf and have a small component that
> > exposes a CamelContext as a service. I'm using the Java DSL and
> > deploying my routes -- everything seems to work.
> >
> > I'm currently using Aries JAX-RS Whiteboard and deploying resources
> > within my own application base. Similarly, this is all working
> > correctly. Adding the 'aries-jax-rs-whiteboard' feature brings in pax
> > web, cxf-jaxrs, etc.
> >
> > I'd now like to use the Camel REST DSL. I've confirmed I can use the
> > Jetty component, as some of the examples have shown, on different ports,
> > however, I'd like to re-use the existing pax web where I've already
> > configured it and it's running on port 8181. I assume the right
> > component is either 'camel-platform-http' or 'camel-servlet', but I've
> > been unsuccessful with each.
> >
> > Reviewing the camel-platform-http component, I see the documentation
> > says:
> >
> > To use Platform HTTP, a provider (engine) is required to be available on
> > the classpath. The purpose is to have drivers for different runtimes
> > such as Quarkus, or Spring Boot.
> >
> > Does such an engine exist to work in Karaf with Pax Web? If not do I use
> > camel-servlet? Neither seem to work out of the box. Any points would be
> > greatly appreciated.
> >
> > --
> > Chaz
> >

Reply via email to