<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
JBoss 6 Oracle XA datasource and no-tx-separate-pools
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/beaster">beaster</a> in <i>Datasource Configuration</i> - <a href="http://community.jboss.org/message/618096#618096">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>We are trying to run JBoss 6 with an Oracle XA datasource.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>We started with jboss-6.0.0.Final\docs\examples\jca\oracle-xa-ds.xml for the datasource configuration.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>We have been running into exceptions like the following:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>{noformat}</p><p>2011-07-26 20:04:04,622 WARN  [com.arjuna.ats.jta] (Thread-24 (group:HornetQ-client-global-threads-1898046)) ARJUNA-16061 TransactionImple.enlistResource - XAResource.start returned: XAException.XAER_PROTO for < formatId=131076, gtrid_length=29, bqual_length=28, tx_uid=0:ffff0a158387:126a:4e2f5438:6b5, node_name=1, branch_uid=0:ffff0a158387:126a:4e2f5438:6ba, eis_name=unknown eis name >: oracle.jdbc.xa.OracleXAException</p><p>                at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1120)</p><p>                at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:249)</p><p>                at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:213)</p><p>                at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:629)</p><p>                at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:390)</p><p>                at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist(TxConnectionManager.java:975)</p><p>                at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:729)</p><p>                at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:459)</p><p>                at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:625)</p><p>                at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:499)</p><p>                at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)</p><p>                at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)</p><p>{noformat}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The code does obtain connections both with and without transactions.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>It started to appear that there is/was an issue with the <span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"><no-tx-separate-pools/> option in oracle-xa-ds.xml.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;">I looked up <span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;">org.jboss.resource.connectionmanager.JBossManagedConnectionPool in the JMX Console and found <span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;">NoTxSeparatePools = false.  So I tried other combinations like <span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"><no-tx-separate-pools>true</no-tx-separate-pools> and I cannot get NoTxSeparatePools = true.</span></span></span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 11pt; font-family: 'Calibri','sans-serif';">I was able to change NoTxSeparatePools = true and apply the change in the JMX Console and then stop and start the MBean.  I then could run the code without any of the errors.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 11pt; font-family: 'Calibri','sans-serif';">Does anyone know how I can configure  NoTxSeparatePools = true from my oracle-xa-ds.xml configuration or is this something that is a bug that a fix is needed for?</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 11pt; font-family: 'Calibri','sans-serif';">Thanks, Jeff</span></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/618096#618096">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>