<!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="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: JCA Spec violation using resource-adapter in JBoss 7?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/jleinawe">jleinawe</a> in <i>IronJacamar</i> - <a href="https://community.jboss.org/message/799747#799747">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>The relevant bits of the JCA spec are:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; JCA 1.5 spec:</p><p>&#160;&#160;&#160;&#160;&#160; Figure 6-7 (page 6-43)</p><p>&#160;&#160;&#160;&#160;&#160; 7.6.5 "Scenario: Connection Close and JTA Transactional Cleanup" (page 7-26)</p><p>&#160;&#160;&#160;&#160;&#160; Figure 7-8 (page 7-28)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; JCA 1.6 spec:</p><p>&#160;&#160;&#160;&#160;&#160; Figure 6-7 (page 6-41)</p><p>&#160;&#160;&#160;&#160;&#160; 7.6.5 "Scenario: Connection Close and JTA Transactional Cleanup" (page 7-24)</p><p>&#160;&#160;&#160;&#160;&#160; Figure 7-8 (page 7-26)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>A slice of the log summary showing that the the RA is sending connection close notification but jboss is not responding (as required) by delisting the resource:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 8pt;">&#160;&#160; [...]<br/>&#160;&#160; out:MessageListener.onMessage(genericStreamMessage0) #1 @1361560697008..1361560702586<br/>&#160;&#160;&#160;&#160;&#160; in:wlxaQueueConnectionFactory0.createConnection() -&gt; wlConnection0 #1 @1361560698037..1361560700740<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; out:ConnectionManager.allocateConnection(wlManagedXAQueueConnectionFactory0,connectionRequestInfoImpl0) -&gt; wlConnection0 #1 @1361560698093..1361560700687<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in:wlManagedXAQueueConnectionFactory0.createManagedConnection(null,connectionRequestInfoImpl0) -&gt; managedConnectionImpl0 #1 @1361560698194..1361560699457<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in:managedConnectionImpl0.getXAResource() -&gt; xaResourceWrapper2 #1 @1361560699619..1361560699675<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in:xaResourceWrapper2.start(xid3,2097152) #6 @1361560700092..1361560700275<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]<br/>&#160;&#160;&#160;&#160;&#160; [...]<br/>&#160;&#160;&#160;&#160;&#160; in:wlConnection0.close() #1 @1361560702160..1361560702546<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>out:ConnectionEventListener.connectionClosed</strong>([...]) #1 @1361560702423..1361560702503<br/>&#160;&#160; out:MessageEndpoint.afterDelivery() #4 @1361560702595..1361560702930<br/>&#160;&#160;&#160;&#160;&#160; [...]<br/>&#160;&#160; [...]<br/></span></p><p>I.e., immediately after the "out:ConnectionEventListener.connectionClosed" call (and with an additional level of indent) there should be an "in:xaResourceWrapper2.end" call, but the app-server is not calling XAResource.end as required.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/799747#799747">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in IronJacamar at <a href="https://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>