Apache Camel: RouteBuilder with CxfEndpoint

后端 未结 1 1090
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-10 03:23

Hello!

I\'m trying to implement a Camel route with Java DSL and RouteBuilder. I want to send from a timer endpoint to a cxf endpoint.

Code:

publ         


        
1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-10 04:00

    You already setup a CxfEndpoint to use, so your route should be just like this

    from("timer://my-timer?fixedRate=true&period=500")
                    .transform(constant("DummyBody"))
                    .to(myEndpoint);
    

    0 讨论(0)
提交回复
热议问题