2015-01-14 121 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 ..我认为这种方式无法在“过期”通知上正确重新订阅。无论如何,它现在正在工作。谢谢!