第 103 章 Salesforce


支持生成者和消费者

此组件支持生产者和消费者端点与 Salesforce 使用 Java DTO 进行通信。
有一个 companion maven plugin Camel Salesforce Plugin 来生成这些 DTO (请参阅以下内容)。

默认情况下,camel-salesforce-maven-plugin 使用 TLSv1.3 与 salesforce 交互。TLS 版本可在插件上配置。FIPS 用户可以配置属性 sslContextParameters.secureSocketProtocol。要使用 maven-plugin,您必须将以下依赖项添加到 pom.xml 文件中。

<plugin>
  <groupId>org.apache.camel.maven</groupId>
  <artifactId>camel-salesforce-maven-plugin</artifactId>
  <version>${camel-community.version}</version>
  <executions>
    <execution>
      <goals>
        <goal>generate</goal>
      </goals>
      <configuration>
        <clientId>${camelSalesforce.clientId}</clientId>
        <clientSecret>${camelSalesforce.clientSecret}</clientSecret>
        <userName>${camelSalesforce.userName}</userName>
        <password>${camelSalesforce.password}</password>
        <sslContextParameters>
          <secureSocketProtocol>TLSv1.2</secureSocketProtocol>
        </sslContextParameters>
	<includes>
	  <include>Contact</include>
	</includes>
      </configuration>
    </execution>
  </executions>
</plugin>
Copy to Clipboard Toggle word wrap
注意
Developers wishing to contribute to the component are instructed to look at the link:https://github.com/apache/camel/tree/main/components/camel-salesforce/camel-salesforce-component/README.md[README.md] file on instructions on how to get started and setup your environment for running integration tests.
Copy to Clipboard Toggle word wrap

103.1. 依赖项

当在 Red Hat build of Camel Spring Boot 中使用 salesforce 时,请确保使用以下 Maven 依赖项来支持自动配置:

<dependency>
  <groupId>org.apache.camel.springboot</groupId>
  <artifactId>camel-salesforce-starter</artifactId>
</dependency>
Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部