Mule如何侦听其他Web应用程序数据? [英] How the Mule Listen other Web Application Data?

查看:114
本文介绍了Mule如何侦听其他Web应用程序数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用Mule集成Salesforce和JIRA.两者都通过使用硬代码正确连接.但是我想当我在Salesforce中触发对象时,该时间ule接受接收Salesforce中对象的数据.在不听"中,我的salesforce对象数据.我所做的.如果IP地址为"Localhost"就足够了.或者必须需要任何实时URL.下面的代码用于在我运行本地URL时获取帐户详细信息.而不是我想在触发Salesforce时获取数据.代码:

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> 

推荐答案

使用流式API使Mule收到有关Salesforce方面的更改的通知.

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

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

这篇关于Mule如何侦听其他Web应用程序数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆