How the Mule Listen other Web Application Data?

2019-09-11 14:28发布

I Want to integrate Salesforce and JIRA by Using Mule. Both are Connecting Properly by using Hard Code. But i want when i am trigger the object in salesforce that time mule accept receive the data of object in salesforce. In Mule Not Listen my salesforce object data. What i do. if the Ip Address is "Localhost" is enough.or must need any realtime URL.The Following code used for recive the account details when i run the local url. instead of i want when i trigger the salesforce i recive the data. Code :

    <sfdc:config name="Salesforce" username="xxxxxxxx@gmail.com" password="xxxxxxxxxxxxx" securityToken="xxxxxxxxxxxxxx" doc:name="Salesforce">
        <sfdc:connection-pooling-profile initialisationPolicy="INITIALISE_ONE" exhaustedAction="WHEN_EXHAUSTED_GROW"/>
    </sfdc:config>
    <flow name="test_projectFlow1" doc:name="test_projectFlow1">
        <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/>
        <sfdc:query config-ref="Salesforce" query="select Account from Account" doc:name="Salesforce"/>
        <echo-component doc:name="Echo"/>
    </flow>
</mule> 

1条回答
放荡不羁爱自由
2楼-- · 2019-09-11 14:46

Use the streaming API to have Mule get notified of changes on Salesforce's side.

See: http://mulesoft.github.io/salesforce-connector/mule/sfdc-config.html#subscribe-topic

查看更多
登录 后发表回答