简体   繁体   English

Mule ESB JDBC入站端点:“抽象转换器”

[英]Mule ESB JDBC inbound endpoint: 'abstract-transformer'

I'm trying to add a transformer to a jdbc inbound endpoint, but I'm getting following error message: 我正在尝试将变压器添加到jdbc入站端点,但是我收到以下错误消息:

Caused by: org.xml.sax.SAXParseException: cvc-elt.2: The value of {abstract} in the element declaration for 'abstract-transformer' must be false. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

here is the config: 这里是配置:

       <jdbc:inbound-endpoint exchange-pattern="one-way" 
                           queryKey="orderSelect" 
                           responseTimeout="10000" 
                           mimeType="text/plain" 
                           queryTimeout="-1" 
                           pollingFrequency="${oms.new.data.polling.interval}" 
                           connector-ref="jdbcConnector" 
                           transformer-refs="ResourceLocker" 
                           doc:name="Select New Orders" >
                           <abstract-transformer class="com.pb.oms.mule.transformer.ResourceUnlocker" 
                                                 name="ResourceUnlocker"
                                                 abstract="false"
                                                 doc:name="ResourceUnlocker" />
    </jdbc:inbound-endpoint>

You should define a global custom-transformer like the following: 您应该定义一个全局自定义变压器,如下所示:

<custom-transformer class="com.pb.oms.mule.transformer.ResourceUnlocker" 
                                             name="ResourceUnlocker"
                                             abstract="false"
                                             doc:name="ResourceUnlocker" />

and the include it within your inbound endpoint using the a 并使用a将其包含在入站端点中

<transformer ref="ResourceUnlocker" />

You can find the documentation on the topic here 您可以在此处找到有关该主题的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM