Apache Camel: RouteBuilder with CxfEndpoint

后端 未结 1 1837
生来不讨喜
生来不讨喜 2021-02-10 03:05

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条回答
  •  灰色年华
    2021-02-10 03:44

    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)
提交回复
热议问题