2015-01-14 120 views
0

我有2個SalesForce連接器訂閱/ ContactTopic &/AccountTopic。Salesforce訂閱主題

現在,當我檢查我的日誌文件時,我注意到,運行19小時後(應用程序在mule企業上運行),每個主題上都有5個訂閱。

INFO 2015-01-14 08:05:16,403 [HttpClient-517] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/AccountTopic 
INFO 2015-01-14 08:05:16,485 [HttpClient-517] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/ContactTopic 
INFO 2015-01-14 08:05:17,067 [HttpClient-1363] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/AccountTopic 
INFO 2015-01-14 08:05:17,149 [HttpClient-1363] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/ContactTopic 
INFO 2015-01-14 08:06:11,247 [HttpClient-601] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/AccountTopic 
INFO 2015-01-14 08:06:11,329 [HttpClient-601] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/ContactTopic 
INFO 2015-01-14 08:06:17,231 [HttpClient-1576] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/AccountTopic 
INFO 2015-01-14 08:06:17,313 [HttpClient-1576] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/ContactTopic 
INFO 2015-01-14 08:06:19,451 [HttpClient-1603] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/AccountTopic 
INFO 2015-01-14 08:06:19,533 [HttpClient-1603] org.mule.modules.salesforce.SalesforceBayeuxClient: Re-Subscribing to channel: /topic/ContactTopic 

訂閱後,我只需使用一個數據映射器將所有內容插入MYSQL數據庫。

這是一個騾子的錯誤還是我在這裏做錯了什麼?

謝謝。

回答

0

該日誌文件並不一定意味着您有5個訂閱者。如果連接有任何問題,可以重新連接,並可以解釋您的重新訂閱。

+0

感謝您的回答..嗯,我認爲他們有5個,因爲我每次在賬戶/聯繫人更新時都會在我的MYSQL數據庫中獲得5條新記錄。 (所有5個都有相同的數據) –

+0

intersting,請你分享你的xml配置的相關部分? –

0

我終於解決了。非常愚蠢的是,我在API 29上訂閱,而我的應用程序正在使用31 ..我認爲這種方式無法在「過期」通知上正確重新訂閱。無論如何,它現在正在工作。謝謝!