Read source topic from Kafka (value is "caseNumber"), find corresponding account name in Salesforce and write to target topic to Kafka (key will be "AccountLookup", value will be {"caseNumber":"01234567","accountName":"Name"}).
SALESFORCE_USERNAME and SALESFORCE_PASSWORD environment variables. SALESFORCE_PASSWORD should have a format like passwordSecurityToken.
- run sbt assembly
- run jar with parameters java -jar Kafka-SalesForce-assembly-1.0.jar --kafkaIpPort localhost:9092 --sourceTopic sourceTopicName --targetTopic targetTopicName
- login to SalesForce
- in the top right corner click on your name -> My settings
- click Personal -> Reset My Security Token, or enter 'reset' in quick find
- you'll receive an e-mail with a new token