<!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">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;">
    AS400JDBCDataSource - getting started with two transactions
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/esther_williams">Esther Williams</a> in <i>JCA</i> - <a href="http://community.jboss.org/message/542386#542386">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This is the discussion started by Chris Weddell but hopefully without formatting issues.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>I am trying to get started with XA using JBOSS connected to two datasources (seperate applications) on the same AS400 (DB2) database.</strong></p><p>I have two datasources (see below) and have the following code...</p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>package</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="font-size: 10pt; font-family: Courier New; "><span style="color: #000000;"> com.misys.equation.xa.test;</span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> java.sql.Connection;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="font-size: 10pt; font-family: Courier New; "><span style="color: #000000;"> java.sql.Statement;</span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> javax.naming.InitialContext;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> javax.sql.DataSource;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="font-size: 10pt; font-family: Courier New; "><span style="color: #000000;"> javax.transaction.UserTransaction;</span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>public</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">class</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><span style="color: #000000;"> Esther</span><p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">static</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">void</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> main(String[] args)<p>{</p><p>UserTransaction utx;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">try</strong><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p>InitialContext initialContext =</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> InitialContext();<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p>utx = (UserTransaction) initialContext.lookup(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"UserTransaction"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>DataSource dataSource1 = (DataSource) initialContext.lookup(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"EQ-EQ4"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>DataSource dataSource2 = (DataSource) initialContext.lookup(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"EQ-EQ5"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// begin a<p><span style="text-decoration: underline;">trannie</span></p></span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>utx.begin();</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// ..</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>Connection connection1 = dataSource1.getConnection();</p><p>Statement statement1 = connection1.createStatement();</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p>statement1.execute(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"INSERT INTO KFILEQ4/JVPF (JVHRC, JVHRD) VALUES('E01', 'EEE')"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p>statement1.close();</p><p>connection1.close();</p><p>Connection connection2 = dataSource2.getConnection();</p><p>Statement statement2 = connection2.createStatement();</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p>statement2.execute(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"INSERT INTO KFILEQ4/JVPF (JVHRC, JVHRD) VALUES('E02', 'EEE')"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p>statement2.close();</p><p>connection2.close();</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// unfortunately the following line fails</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>utx.commit();</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p>System.</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">out</em><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.println(utx.getStatus());<p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">catch</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> (Exception e)<p>{</p><p>e.printStackTrace();</p><p>}</p><p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p>}</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="font-size: 12pt; font-family: Times New Roman;">unfortunately I get the following error when i execute the commit....</span></p><p><strong>14:53:50,076 INFO [STDOUT] Wed Apr 14 14:53:50:076 BST 2010 as400: XAResource B603382C-XA:RMID#49153 (30120272) : xa_end.</strong></p><p><strong>14:53:50,076 INFO [STDOUT] Wed Apr 14 14:53:50:076 BST 2010 as400: XAResource B603382C-XA:RMID#49153 (30120272) : xa error class = 0, return code = 0.</strong></p><p><strong>14:53:50,076 INFO [STDOUT] Wed Apr 14 14:53:50:076 BST 2010 as400: XAResource B603382C-XA:RMID#49153 (30120272) : xa_commit.</strong></p><p><strong>14:53:50,092 INFO [STDOUT] Wed Apr 14 14:53:50:092 BST 2010 as400: XAResource B603382C-XA:RMID#49153 (30120272) : xa error class = 9,</strong> return code = -6.</p><p>14:53:50,092 ERROR [STDERR]</p><p>javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit transaction.</p><p>14:53:50,092 ERROR [STDERR] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(</p><p>TransactionImple.java:1426)</p><p>14:53:50,092 ERROR [STDERR] at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(</p><p>BaseTransaction.java:135)</p><p>14:53:50,092 ERROR [STDERR] at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(</p><p>BaseTransactionManagerDelegate.java:75)</p><p>14:53:50,092 ERROR [STDERR] at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(</p><p>ServerVMClientUserTransaction.java:162)</p><p>14:53:50,092 ERROR [STDERR] at com.misys.equation.ui.services.ServiceDirectory.startXATransaction(</p><p>ServiceDirectory.java:1156)</p><p>14:53:50,092 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(</p><p>Native Method)</p><p>14:53:50,092 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</p><p>14:53:50,092 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</p><p>14:53:50,092 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.providers.java.RPCProvider.invokeMethod(</p><p>RPCProvider.java:397)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.providers.java.RPCProvider.processMessage(</p><p>RPCProvider.java:186)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.providers.java.JavaProvider.invoke(</p><p>JavaProvider.java:323)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.strategies.InvocationStrategy.visit(</p><p>InvocationStrategy.java:32)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.SimpleChain.doVisiting(</p><p>SimpleChain.java:118)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.SimpleChain.invoke(</p><p>SimpleChain.java:83)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.handlers.soap.SOAPService.invoke(</p><p>SOAPService.java:454)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.server.AxisServer.invoke(</p><p>AxisServer.java:281)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.transport.http.AxisServlet.doPost(</p><p>AxisServlet.java:699)</p><p>14:53:50,092 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(</p><p>HttpServlet.java:637)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.axis.transport.http.AxisServletBase.service(</p><p>AxisServletBase.java:327)</p><p>14:53:50,092 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(</p><p>HttpServlet.java:717)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(</p><p>ApplicationFilterChain.java:290)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(</p><p>ApplicationFilterChain.java:206)</p><p>14:53:50,092 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(</p><p>ReplyHeaderFilter.java:96)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(</p><p>ApplicationFilterChain.java:235)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(</p><p>ApplicationFilterChain.java:206)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(</p><p>StandardWrapperValve.java:235)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(</p><p>StandardContextValve.java:191)</p><p>14:53:50,092 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(</p><p>SecurityAssociationValve.java:190)</p><p>14:53:50,092 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(</p><p>JaccContextValve.java:92)</p><p>14:53:50,092 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(</p><p>SecurityContextEstablishmentValve.java:126)</p><p>14:53:50,092 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(</p><p>SecurityContextEstablishmentValve.java:70)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(</p><p>StandardHostValve.java:127)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(</p><p>ErrorReportValve.java:102)</p><p>14:53:50,092 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(</p><p>CachedConnectionValve.java:158)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(</p><p>StandardEngineValve.java:109)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(</p><p>CoyoteAdapter.java:330)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(</p><p>Http11Processor.java:829)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(</p><p>Http11Protocol.java:601)</p><p>14:53:50,092 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(</p><p>JIoEndpoint.java:447)</p><p>14:53:50,092 ERROR <a class="" href="http://community.jboss.org/message/537429/l537429/STDERR"><span style="color: #0000ff; text-decoration: underline; ">http://community.jboss.org/message/537429#537429/STDERR</span></a> at java.lang.Thread.run(Unknown Source)</p><p><br/><strong>Now when i run the following code I don't get a problem....</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>package</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="font-size: 10pt; font-family: Courier New; "><span style="color: #000000;"> com.misys.equation.xa.test;</span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> java.io.Serializable;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> java.sql.Connection;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> java.sql.SQLException;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> java.sql.Statement;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> java.util.Arrays;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="font-size: 10pt; font-family: Courier New; "><span style="color: #000000;"> java.util.Random;</span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> javax.sql.XAConnection;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> javax.transaction.xa.XAException;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> javax.transaction.xa.XAResource;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="font-size: 10pt; font-family: Courier New; "><span style="color: #000000;"> javax.transaction.xa.Xid;</span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> com.ibm.as400.access.AS400JDBCXADataSource;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> com.ibm.as400.access.AS400JDBCXAResource;</span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>import</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="font-size: 10pt; font-family: Courier New; "><span style="color: #000000;"> com.misys.equation.common.utilities.Toolbox;</span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></p><p><strong><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p>public</p></strong></span><strong style=": ; font-size: 2; font-color: #7f0055; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><strong style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style="font-size: 10pt; color: #7f0055; font-family: Courier New;"><span style=": ; color: #7f0055; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style=": ; font-size: 2; font-family: 'Courier New'; font-color: #7f0055; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-color: #7f0055; font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></strong></p><p><span style="color: #000000; font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">class</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><span style="color: #000000;"> Esther2</span><p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// This attribute is used to store <span style="text-decoration: underline;">cvs</span> version information.</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">static</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">final</strong><span style="font-size: 10pt; font-family: Courier New; "> String </span><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">_revision</em><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"$Id: FileProcessor.java,v 1.6 2009/09/16 16:13:27 esther.williams Exp $"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>String</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">user1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"whatever"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>String</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">password1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"itmaybe"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>String</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">system1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"machineA"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>String</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">user2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"whatever"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>String</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">password2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"itmaybe"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>String</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">system2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"machineA"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>String</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">library</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"*LIBL"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>AS400JDBCXADataSource</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>XAConnection</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>XAResource</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>XidImpl</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>Connection</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">connection1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>Statement</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">statement1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>AS400JDBCXADataSource</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>XAConnection</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>XAResource</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>AS400JDBCXAResource</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">a</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// private XidImpl xid2 = null;</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p>Connection</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">connection2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>Statement</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">statement2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">private</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> Esther2()<p>{</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">static</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">void</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> main(String[] args)<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p>System.</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">out</em><span style="font-size: 10pt; font-family: Courier New; ">.println(</span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"Proceeding with test..."</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>Esther2 test =</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> Esther2();<p>test.test();</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">private</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">void</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> test()<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">try</strong><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> AS400JDBCXADataSource();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New; ">.setServerName(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">system1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New; ">.setUser(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">user1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New; ">.setPassword(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">password1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New; ">.setLibraries(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">library</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New; ">.setNaming(</span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"system"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New; ">.setTranslateBinary(</span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">false</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New; ">.setTrace(</span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">true</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> AS400JDBCXADataSource();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New; ">.setServerName(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">system2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New; ">.setUser(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">user2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New; ">.setPassword(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">password2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New; ">.setLibraries(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">library</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New; ">.setNaming(</span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"system"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New; ">.setTranslateBinary(</span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">false</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New; ">.setTrace(</span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">true</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.getXAConnection();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaDataSource2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.getXAConnection();<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.getXAResource();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.getXAResource();<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New; "> XidImpl(</span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New; ">[] { 0x0d }, </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">[] { 0x0b });<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; ">.start(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; ">, XAResource.</span><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">TMNOFLAGS</em><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// Need to decide whether to join based on whether the resources have the same resource manager</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// if the are the same then the prepares, commits and <span style="text-decoration: underline;">rollbacks</span> should only be executed on</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// the first resource</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">if</strong><span style="font-size: 10pt; font-family: Courier New; "> (</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; ">.isSameRM(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">))<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource2</span><span style="font-size: 10pt; font-family: Courier New; ">.start(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; ">, XAResource.</span><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">TMJOIN</em><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">else</strong><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource2</span><span style="font-size: 10pt; font-family: Courier New; ">.start(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; ">, XAResource.</span><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">TMNOFLAGS</em><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// Do some SQL on connection 1</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">connection1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.getConnection();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">statement1</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">connection1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.createStatement();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">statement1</span><span style="font-size: 10pt; font-family: Courier New; ">.executeUpdate(</span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"INSERT INTO KFILEQ4/JVPF (JVHRC, JVHRD) VALUES('X01', 'X01D')"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// Do some SQL on connection 2</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">connection2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.getConnection();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">statement2</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">connection2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.createStatement();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">statement2</span><span style="font-size: 10pt; font-family: Courier New; ">.executeUpdate(</span><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"INSERT INTO KFILEQ4/JVPF (JVHRC, JVHRD) VALUES('X02', 'X02D')"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// tell the resources that we have successfully finished doing the work, </span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// need to consider what to do if the SQL had gone wrong!</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; ">.end(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; ">, XAResource.</span><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">TMSUCCESS</em><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource2</span><span style="font-size: 10pt; font-family: Courier New; ">.end(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; ">, XAResource.</span><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">TMSUCCESS</em><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">if</strong><span style="font-size: 10pt; font-family: Courier New; "> (</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; ">.isSameRM(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">))<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// only need to prepare on the first resource</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">int</strong><span style="font-size: 10pt; font-family: Courier New; "> <span style="text-decoration: underline;">ret1</span> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; ">.prepare(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// <span style="text-decoration: underline;">int</span> ret2 = xaResource2.prepare(<span style="text-decoration: underline;">xid</span>);</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// only need to commit on the first resource</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; ">.commit(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; ">, </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">false</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// xaResource2.commit(<span style="text-decoration: underline;">xid</span>, false);</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">else</strong><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">int</strong><span style="font-size: 10pt; font-family: Courier New; "> <span style="text-decoration: underline;">ret1</span> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; ">.prepare(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">int</strong><span style="font-size: 10pt; font-family: Courier New; "> <span style="text-decoration: underline;">ret2</span> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource2</span><span style="font-size: 10pt; font-family: Courier New; ">.prepare(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource1</span><span style="font-size: 10pt; font-family: Courier New; ">.commit(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; ">, </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">false</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaResource2</span><span style="font-size: 10pt; font-family: Courier New; ">.commit(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xid</span><span style="font-size: 10pt; font-family: Courier New; ">, </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">false</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p>}</p><p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">catch</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> (XAException e)<p>{</p><p>e.printStackTrace();</p><p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">catch</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> (SQLException e)<p>{</p><p>e.printStackTrace();</p><p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">finally</strong><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">try</strong><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">statement1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.close();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">statement2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.close();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">connection1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.close();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">connection2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.close();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection1</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.close();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">xaConnection2</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">.close();<p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">catch</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> (Exception e2)<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">// </span><strong style=": ; color: #7f9fbf; font-size: 10pt; font-family: Courier New; ">TODO</strong><span style="color: #3f7f5f; font-size: 10pt; font-family: Courier New; ">: handle exception</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>}</p><p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">static</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">class</strong><span style="font-size: 10pt; font-family: Courier New; "> XidImpl </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">implements</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> Serializable, Xid<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">private</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">static</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">final</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">long</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">serialVersionUID</em><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> = 1L;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">private</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">static</strong><span style="font-size: 10pt; font-family: Courier New; "> Random </span><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">random</em><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> Random();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">private</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">final</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">int</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">formatId</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> = 876;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">private</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">final</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New; ">[] </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">globalTransactionId</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">private</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">final</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New; ">[] </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">branchQualifier</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">private</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">transient</strong><span style="font-size: 10pt; font-family: Courier New; "> String </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">cachedToString</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">private</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">transient</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">int</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">cachedHashCode</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> XidImpl()<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">globalTransactionId</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">[10];<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">random</em><span style="font-size: 10pt; font-family: Courier New; ">.nextBytes(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">globalTransactionId</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">branchQualifier</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">[10];<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><em style=": ; color: #0000c0; font-size: 10pt; font-family: Courier New; ">random</em><span style="font-size: 10pt; font-family: Courier New; ">.nextBytes(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">branchQualifier</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> XidImpl(</span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New; ">[] globalTransactionId, </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">[] branchQualifier)<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">this</strong><span style="font-size: 10pt; font-family: Courier New; ">.</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">globalTransactionId</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> = globalTransactionId;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">this</strong><span style="font-size: 10pt; font-family: Courier New; ">.</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">branchQualifier</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> = branchQualifier;<p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">int</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> getFormatId()<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">return</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">formatId</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">[] getGlobalTransactionId()<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">return</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">globalTransactionId</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">byte</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">[] getBranchQualifier()<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">return</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">branchQualifier</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #646464; font-size: 10pt; font-family: Courier New; ">@Override</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">boolean</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> equals(Object object)<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">if</strong><span style="font-size: 10pt; font-family: Courier New; "> (object == </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">this</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">)<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">return</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">true</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">if</strong><span style="font-size: 10pt; font-family: Courier New; "> (object == </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New; "> || object </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">instanceof</strong><span style="font-size: 10pt; font-family: Courier New; "> Xid == </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">false</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">)<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">return</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">false</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Xid other = (Xid) object;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">return</strong><span style="font-size: 10pt; font-family: Courier New; "> (</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">formatId</span><span style="font-size: 10pt; font-family: Courier New; "> == other.getFormatId() &amp;&amp; Arrays.<em>equals</em>(</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">globalTransactionId</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">, other.getGlobalTransactionId()) &amp;&amp; Arrays<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>.<em>equals</em>(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">branchQualifier</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">, other.getBranchQualifier()));<p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #646464; font-size: 10pt; font-family: Courier New; ">@Override</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">int</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> hashCode()<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">if</strong><span style="font-size: 10pt; font-family: Courier New; "> (</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">cachedHashCode</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> == 0)<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">cachedHashCode</span><span style="font-size: 10pt; font-family: Courier New; "> = </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">formatId</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">for</strong><span style="font-size: 10pt; font-family: Courier New; "> (</span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">int</strong><span style="font-size: 10pt; font-family: Courier New; "> j = 0; j &lt; </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">globalTransactionId</span><span style="font-size: 10pt; font-family: Courier New; ">.</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">length</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">; ++j)<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">cachedHashCode</span><span style="font-size: 10pt; font-family: Courier New; "> += </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">globalTransactionId</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">[j];<p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">return</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">cachedHashCode</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">;<p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #646464; font-size: 10pt; font-family: Courier New; ">@Override</span></p><p><span style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">public</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> String toString()<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">if</strong><span style="font-size: 10pt; font-family: Courier New; "> (</span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">cachedToString</span><span style="font-size: 10pt; font-family: Courier New; "> == </span><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">null</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">)<p>{</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p>StringBuffer buffer =</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">new</strong><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> StringBuffer();<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>buffer.append(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"XidImpl[FormatId="</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">).append(getFormatId());<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>buffer.append(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">" GlobalId=x'"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">).append(Toolbox.<em>cvtBytesToHexString</em>(getGlobalTransactionId()));<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>buffer.append(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"' BranchQual=x'"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">).append(Toolbox.<em>cvtBytesToHexString</em>(getBranchQualifier()));<span style=": ; font-size: 2; font-family: 'Courier New'; "><p>buffer.append(</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #2a00ff; font-size: 10pt; font-family: Courier New; ">"']"</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;">);<span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">cachedToString</span><span style="font-size: 10pt; font-family: Courier New;"><span style="font-size: 10pt; font-family: Courier New;"> = buffer.toString();<p>}</p><span style=": ; font-size: 2; font-family: 'Courier New'; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><span style="font-family: 'Courier New'; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p><strong style=": ; color: #7f0055; font-size: 10pt; font-family: Courier New; ">return</strong><span style="font-size: 10pt; font-family: Courier New; "> </span><span style="color: #0000c0; font-size: 10pt; font-family: Courier New; ">cachedToString</span><span style="font-size: 10pt; font-family: Courier New; ">;<p>}</p><p>}</p><p>}</p></span></p><p><strong>Note there is an extra "end" for the secound resource and a "prepare" that i don't see logged in the jboss example.</strong></p><p><strong>Any ideas?</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #0000ff;"><span class="m">&lt;?</span><span class="pi">xml version="1.0" encoding="UTF-8" </span><span class="m">?&gt;</span></span></p><div class="e"><div class="c" style="margin-left: 1em; text-indent: -2em;"><a class="jive-link-anchor-small"><strong style="color: #ff0000; font-family: Courier New; ">-</strong></a> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">datasources</span><span style="color: #0000ff; ">&gt;</span></div><div><div class="e"><div class="c" style="margin-left: 1em; text-indent: -2em;"><a class="jive-link-anchor-small"><strong style="color: #ff0000; font-family: Courier New; ">-</strong></a> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">xa-datasource</span><span style="color: #0000ff; ">&gt;</span></div><div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">jndi-name</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>EQ-EQ5</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">jndi-name</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">use-java-context</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>false</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">use-java-context</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">xa-datasource-class</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>com.ibm.as400.access.AS400JDBCXADataSource</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-class</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>User</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>WHATEVER</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>Password</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>ITMAYBE</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>ServerName</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>MACHINEA</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>Libraries</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>*LIBL</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>Naming</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>system</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">track-connection-by-tx</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>true</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">track-connection-by-tx</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">prepared-statement-cache-size</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>100</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">prepared-statement-cache-size</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">isSameRM-override-value</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>false</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">isSameRM-override-value</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">no-tx-separate-pools</span> <span style="color: #0000ff; ">/&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">new-connection-sql</span> <span style="color: #0000ff; ">/&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">check-valid-connection-sql</span> <span style="color: #0000ff; ">/&gt;</span></div></div><div class="k"><span><a class="jive-link-anchor-small"><strong style="color: #ff0000; font-family: Courier New; ">-</strong></a> <span style="color: #0000ff; ">&lt;!--</span></span> <span class="ci"><pre><span style="font-size: 12pt; color: #888888;">pooling parameters</span></pre></span><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff;"><span class="m">--&gt;</span></span></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">min-pool-size</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>1</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">min-pool-size</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">max-pool-size</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>50</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">max-pool-size</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">blocking-timeout-millis</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>50000</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">blocking-timeout-millis</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">idle-timeout-minutes</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>5</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">idle-timeout-minutes</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div class="c" style="margin-left: 1em; text-indent: -2em;"><a class="jive-link-anchor-small"><strong style="color: #ff0000; font-family: Courier New; ">-</strong></a> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">metadata</span><span style="color: #0000ff; ">&gt;</span></div><div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">type-mapping</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>DB2/400</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">type-mapping</span><span style="color: #0000ff; ">&gt;</span></div></div><div><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">metadata</span><span style="color: #0000ff; ">&gt;</span></div></div></div><div><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource</span><span style="color: #0000ff; ">&gt;</span></div></div></div><div><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">datasources</span><span style="color: #0000ff; ">&gt;</span></div></div></div><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><div class="e"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff;"><span class="m">&lt;?</span><span class="pi">xml version="1.0" encoding="UTF-8" </span><span class="m">?&gt;</span></span></div><div class="e"><div class="c" style="margin-left: 1em; text-indent: -2em;"><a class="jive-link-anchor-small"><strong style="color: #ff0000; font-family: Courier New; ">-</strong></a> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">datasources</span><span style="color: #0000ff; ">&gt;</span></div><div><div class="e"><div class="c" style="margin-left: 1em; text-indent: -2em;"><a class="jive-link-anchor-small"><strong style="color: #ff0000; font-family: Courier New; ">-</strong></a> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">xa-datasource</span><span style="color: #0000ff; ">&gt;</span></div><div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">jndi-name</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>EQ-EQ4</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">jndi-name</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">use-java-context</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>false</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">use-java-context</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">xa-datasource-class</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>com.ibm.as400.access.AS400JDBCXADataSource</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-class</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>User</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>WHATEVER</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>Password</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>ITMAYBE</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>ServerName</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>MACHINEA</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>Libraries</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>*LIBL</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000;"><span class="t">xa-datasource-property</span><span class="t"> name</span></span><span style="color: #0000ff; ">="</span><strong>Naming</strong><span style="color: #0000ff;"><span class="m">"</span><span class="m">&gt;</span></span><span class="tx"><strong>system</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource-property</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">track-connection-by-tx</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>true</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">track-connection-by-tx</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">prepared-statement-cache-size</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>100</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">prepared-statement-cache-size</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">isSameRM-override-value</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>false</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">isSameRM-override-value</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">no-tx-separate-pools</span> <span style="color: #0000ff; ">/&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">new-connection-sql</span> <span style="color: #0000ff; ">/&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">check-valid-connection-sql</span> <span style="color: #0000ff; ">/&gt;</span></div></div><div class="k"><span><a class="jive-link-anchor-small"><strong style="color: #ff0000; font-family: Courier New; ">-</strong></a> <span style="color: #0000ff; ">&lt;!--</span></span> <span class="ci"><pre><span style="font-size: 12pt; color: #888888;">pooling parameters</span></pre></span><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff;"><span class="m">--&gt;</span></span></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">min-pool-size</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>1</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">min-pool-size</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">max-pool-size</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>50</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">max-pool-size</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">blocking-timeout-millis</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>50000</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">blocking-timeout-millis</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">idle-timeout-minutes</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>5</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">idle-timeout-minutes</span><span style="color: #0000ff; ">&gt;</span></div></div><div class="e"><div class="c" style="margin-left: 1em; text-indent: -2em;"><a class="jive-link-anchor-small"><strong style="color: #ff0000; font-family: Courier New; ">-</strong></a> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">metadata</span><span style="color: #0000ff; ">&gt;</span></div><div><div class="e"><div style="margin-left: 1em; text-indent: -2em;"><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;</span><span style="color: #990000; ">type-mapping</span><span style="color: #0000ff; ">&gt;</span><span class="tx"><strong>DB2/400</strong></span><span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">type-mapping</span><span style="color: #0000ff; ">&gt;</span></div></div><div><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">metadata</span><span style="color: #0000ff; ">&gt;</span></div></div></div><div><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">xa-datasource</span><span style="color: #0000ff; ">&gt;</span></div></div></div><div><span class="b"><strong style="color: #ff0000; font-family: Courier New; "> </strong></span> <span style="color: #0000ff; ">&lt;/</span><span style="color: #990000; ">datasources</span><span style="color: #0000ff; ">&gt;</span></div></div></div><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p></p></p></p></p></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/542386#542386">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JCA at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>