3 Replies Latest reply on Oct 13, 2015 9:34 AM by Tomohisa igarashi

    how to properly create and register Camel Endpoint within SY 1 and get CamelContext

    witek witek Newbie

      Hallo,

       

      I'm trying to create an bean endpoint and register it within Camel/Switchyard context (SY version 1.1).

      This is part of a method with @Named bean:

       

                CxfEndpoint cxfEndpoint = new CxfEndpoint();

              cxfEndpoint.setCamelContext(camelContext);

              cxfEndpoint.setDataFormat(DataFormat.PAYLOAD);

       

       

              cxfEndpoint.setWsdlURL(...);

              cxfEndpoint.setAddress(...);

              cxfEndpoint.setDefaultOperationName(...);

              cxfEndpoint.setServiceClass(...);

       

      However, I do not know how to obtain CamelContext within bean?

      How to properly registering custom bean endpoints within SY?

       

      Cheers!