服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

带有MDB失败的JBoss EAP XA数据源

我有一个运行的MDB将数据发布到oracle数据库。 XA数据源configuration为: <xa-datasource jndi-name="java:/jdbc/HIF-BannerPU" pool-name="HIF-BannerPU" enabled="true" spy="true" use-ccm="true" statistics-enabled="false"> <xa-datasource-property name="URL"> ${hif-db-url} </xa-datasource-property> <driver>OracleJDBCDriver</driver> <security> <user-name>uifsmgr</user-name> <password>u_pick_it</password> </security> <validation> <validate-on-match>false</validate-on-match> <background-validation>false</background-validation> <use-fast-fail>false</use-fast-fail> </validation> <timeout> <set-tx-query-timeout>false</set-tx-query-timeout> <blocking-timeout-millis>0</blocking-timeout-millis> <idle-timeout-minutes>0</idle-timeout-minutes> <query-timeout>0</query-timeout> <use-try-lock>0</use-try-lock> <allocation-retry>0</allocation-retry> <allocation-retry-wait-millis>0</allocation-retry-wait-millis> </timeout> <statement> <share-prepared-statements>true</share-prepared-statements> </statement> </xa-datasource> 运行一段时间(不确定确切的时间跨度,可能几个小时)后,下一个MDB onMessage引发此exception: Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000457: Unchecked throwable in managedConnectionReconnected() cl=org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@178ff38 2[state=DESTROYED managed connection=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@70289860 connection handles=0 lastReturned=1506796773697 lastValidated=1506796773525 […]