一个';{quot;http://www.mulesoft.org/schema/mule/jdbc";:抽象查询}';预计

一个';{quot;http://www.mulesoft.org/schema/mule/jdbc";:抽象查询}';预计,jdbc,mule,xa,Jdbc,Mule,Xa,我正在Mule Studio中尝试使用oracle数据库连接器实现XA事务。当我尝试在MuleStudio服务器上部署这个mule应用程序时,我遇到了以下异常 例外情况: “原因:org.springframework.beans.NotWritablePropertyException:bean类[oracle.jdbc.xa.client.OracleXADataSource]的无效属性'url':bean属性'url'不可写或具有无效的setter方法。setter的参数类型是否与gett

我正在Mule Studio中尝试使用oracle数据库连接器实现XA事务。当我尝试在MuleStudio服务器上部署这个mule应用程序时,我遇到了以下异常

例外情况:

“原因:org.springframework.beans.NotWritablePropertyException:bean类[oracle.jdbc.xa.client.OracleXADataSource]的无效属性'url':bean属性'url'不可写或具有无效的setter方法。setter的参数类型是否与getter的返回类型匹配?”

Mule配置xml文件:

我已经按照上述其他应用程序的配置,使xa事务与oracle数据库一起工作,但我得到了不同的异常,如下所示:

原因:org.xml.sax.saxpasseeption;行号:195;栏目号:55;cvc复杂类型.2.4.a:发现以元素“xa transaction”开头的无效内容。应为“{”“:抽象查询}”之一


如果我配置错误,请更正。

Url属性可能应该是

<spring:property name="url" value="jdbc:oracle:thin:@//localhost:1521/XE"/>

大写的“URL”帮助我解决了第一个问题,即

<spring:property name="URL" value="jdbc:oracle:thin:@localhost:1521:xe" />

第二个问题是通过将“xatransaction”元素放在查询之前解决的,如下所示

<jdbc-ee:outbound-endpoint exchange-pattern="request-response" queryKey="testQuery" queryTimeout="-1" connector-ref="Database" doc:name="Database"> 
<xa-transaction action="NONE" /> 
<jdbc-ee:query key="testQuery" value="select * from test" /> 


试试看
倒霉这个把戏对我没用。
<jdbc-ee:outbound-endpoint exchange-pattern="request-response" queryKey="testQuery" queryTimeout="-1" connector-ref="Database" doc:name="Database"> 
<xa-transaction action="NONE" /> 
<jdbc-ee:query key="testQuery" value="select * from test" />