You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2020/01/21 15:33:00 UTC
[jira] [Commented] (CAMEL-11376) camel-cxf - Conduit configuration
not possible in SpringBoot without xml
[ https://issues.apache.org/jira/browse/CAMEL-11376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17020309#comment-17020309 ]
Freeman Yue Fang commented on CAMEL-11376:
------------------------------------------
Hi [~sonyjop],
You actually can get HTTPConduit from the code and configure it accordingly, no need to use xml. Like the code below
{code}
CxfEndpoint clientEndpoint = .....
CxfProducer producer = (CxfProducer) clientEndpoint.createProducer();
// need to start the producer to get the client
producer.start();
Client client = producer.getClient();
HTTPConduit conduit = (HTTPConduit)client.getConduit();
//configure the conduit as you want here
{code}
> camel-cxf - Conduit configuration not possible in SpringBoot without xml
> ------------------------------------------------------------------------
>
> Key: CAMEL-11376
> URL: https://issues.apache.org/jira/browse/CAMEL-11376
> Project: Camel
> Issue Type: Improvement
> Components: camel-cxf, camel-cxfrs
> Affects Versions: 2.16.3
> Environment: Camel with SpringBoot
> Reporter: Sony Joseph
> Assignee: Freeman Yue Fang
> Priority: Minor
>
> I am looking for an option to get away without an XML file for application context in my project. But the element like http-conduit can only be added with the support of an XML
--
This message was sent by Atlassian Jira
(v8.3.4#803005)