Apache Camel: RouteBuilder with CxfEndpoint

后端 未结 1 1835
生来不讨喜
生来不讨喜 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)
提交回复
热议问题