Hi,

FYI, you have the proxy feature in Karaf directly (without Cellar).

Rest is using CXF servlet. The CXF servlet should be registered with the flag 
to be taken by Cellar whiteboard (provided by Aries JAXRS whiteboard).
Let me check if it’s possible to tweak the CXF servlet registration made by 
Aries JAXRS Whiteboard.

Regards
JB

> Le 23 juin 2020 à 17:10, Jean-Baptiste Simillon 
> <[email protected]> a écrit :
> 
> Hi,
> 
> I've been trying for hours to make my REST service (that was made thanks to 
> whiteboard) available on cellar http balancer but can't figure out what is 
> not working.
> So as a last resort I tried to make the karaf-rest-example-whiteboard work, 
> and to my surprise it didn't work either over http balancer.
> 
> So basically what I do is install 2 karaf with cellar on 2 computers
> feature:repo-add cellar
> feature:install cellar
> feature:install http
> feature:install http-whiteboard
> feature:install cellar-http-balancer
> 
> Then I add the example on one node
> feature:repo-add 
> mvn:org.apache.karaf.examples/karaf-rest-example-features/LATEST/xml
> feature:install karaf-rest-example-whiteboard
> 
> My nodes see each others
> karaf@root()> cluster:node-list
>   │ Id               │ Alias │ Host Name   │ Port
> ──┼──────────────────┼───────┼─────────────┼─────
> x │ 10.0.35.203:5701 <http://10.0.35.203:5701/> │       │ 10.0.35.203 │ 5701
>   │ 10.0.200.15:5701 <http://10.0.200.15:5701/> │       │ 10.0.200.15 │ 5701
> 
> But no services are available on the cluster :
> karaf@root()> cluster:http-list default                                       
>                                                               
> Alias │ Locations
> ──────┼──────────
> karaf@root()>                         
> 
> And when I try to connect through curl it works only from the node where the 
> example is installed.
> It seems to work fine when I try to use the blueprint example, but I find the 
> whiteboard example way easier to maintain (no xml files needed, just standard 
> annotations). Do you have any idea what could be missing to make the 
> whiteboard example working on cellar http balancer ?
> 
> Regards
> 
>                                                                               
>                         

Reply via email to