Given the system that has multiple bundles, each having it's own Camel context and zero or more JAX-RS beans (each having a path-prefix defined), how to organise the whole system, so that:

  • all JAX-RS beans are bound to configured hostname/port
  • all of them share same interceptors

I'd like to ask for a little bit verbose answer, please.

有帮助吗?

解决方案

It looks you are using CXFSeverlet OSGi transport which is support to routing the request message acrose the bundles. You just need to setup the different relative path to the endpoint.

You can configure different interceptor per endpoint to handle the request and response different even they are using same transport which you cannot change that.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top