第111章 Salesforce


producer と consumer の両方がサポート対象

このコンポーネントは、Java DTO を使用して Salesforce と通信する producer エンドポイントと consumer エンドポイントをサポートします。
これらの DTO を生成する付属の maven プラグイン Camel Salesforce Plugin があります (以下を参照)。

111.1. 依存関係

Red Hat build of Camel Spring Boot で salesforce を使用する場合は、自動設定をサポートするために、次の Maven 依存関係を必ず使用してください。

<dependency>
  <groupId>org.apache.camel.springboot</groupId>
  <artifactId>camel-salesforce-starter</artifactId>
</dependency>

デフォルトでは、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>

camel-community.version は、camel-salesforce-maven-plugin の操作時に使用する、対応する Camel コミュニティーバージョンを指します。たとえば、Red Hat build of Camel Spring Boot バージョン 4.4.0 では、Apache Camel の '4.4.0' バージョンを使用できます。

Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.