无法在3.5.1版Mule ESB中使用'db:generic-config'重试 [英] Not able to do retry with 'db: generic-config' in 3.5.1 version Mule ESB

查看:97
本文介绍了无法在3.5.1版Mule ESB中使用'db:generic-config'重试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于DB(使用db:generic-config)全局连接器没有重新连接策略.我在外部尝试按链接 http中所述设置重新连接策略://www.mulesoft.org/documentation/display/35X/Configuring+Reconnection+Strategies .选择配置后,选择后,它允许我设置重新连接.它给出了类似

Since DB (Using db: generic-config) Global Connector don't have reconnect strategy. I'm externally trying to set the reconnect Strategy as mentioned in the link http://www.mulesoft.org/documentation/display/35X/Configuring+Reconnection+Strategies. After selecting the configuration, it allows me to set the reconnect, once after selecting. It is giving error like

 'Element: is not allowed to be child of element configuration' 

请找到配置

<configuration >
<reconnect></reconnect>
</configuration>

进行上述任何一种体验.列出时,重新连接选项在配置下找到,但抛出错误.谁能帮助我解决问题. 如果该选项不起作用,请用其他选项更正我,以便重试.我正在尝试使用此选项以重试我的数据库.

Do any one experiences as above. While listing, the reconnect option found under configuration but it is throwing error. Could any one help me to resolve the issue. If this option won't work , please correct me with other options how to retry for . I'm trying this option in order to retry for my DB.

还引用了此链接:使用Mule 3.5 db连接器重新连接 .没有解决方案.

Referred this link also:Reconnect using Mule 3.5 db connector. No solution to achieve.

谢谢.

推荐答案

默认重新连接策略对与ActiveMQ连接一起运行Mule 3.5.1 EE的我运行正常,但与JDBC连接一起使用时不起作用(db:generic-config ).

Default reconnection strategy worked fine for me running Mule 3.5.1 EE when used with ActiveMQ connection but did not work when used with JDBC connection (db:generic-config).

AnypointStudio XML解析器确实抱怨重新连接元素不能是配置元素'Element: is not allowed to be child of element configuration'的子元素,但是服务器启动时没有任何错误.

AnypointStudio XML parser do complain that reconnect element cannot be a child of configuration element 'Element: is not allowed to be child of element configuration' but the server started without any errors.

基于XSD,重新连接是有效的配置子级.不知道为什么AnypointStudio会抱怨:

Based on the XSD, reconnect is a valid child of configuration. Not sure why AnypointStudio complains about that:

https://www.mulesoft. org/docs/site/current3/schemadocs/schemas/mule_xsd/elements/configuration.html

这篇关于无法在3.5.1版Mule ESB中使用'db:generic-config'重试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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