Hi,

I do not think that the below initialization would listen for the requests
on the url provided in the SERVICE_ADDRESS. 

CxfEndpoint serviceEndpoint = new CxfEndpoint(SERVICE_ADDRESS,
cxfComponent);

You initialize the CxfEndpoint with the required properties. If you want to
use it as a producer, you use it as below:
from("...")
.to("soapClientEndpoint");
When used in the to() section, camel will know that you are trying to make
use of the producer capability of the cxf endpoint and hence would make a
SOAP/REST request to the URI provided.

And if you use it in the from() section then it would listen for any
incoming SOAP/REST requests.

Thanks,
Kalyan



--
View this message in context: 
http://camel.465427.n5.nabble.com/cxf-endpoint-configuration-in-java-DSL-tp5771538p5772217.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to