<!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/800169#800169">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 Jesper,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks again for your time.&#160;&#160; Can you clarify what you mean by "there is no TRACE log".&#160;&#160; Is there a distinct log file for this, or is it TRACE messages in the server's log?&#160;&#160;&#160;&#160; If the logs_0228.zip file doesn't contain what is needed, please provide instructions for creating the correct log.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have tracing information to share from our own RA trace tools.&#160;&#160; Attached is a file named "tracem.txt" which is generated from the RA tracing and shows calls made "in" to the RA and when the RA calls anyone "out".</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Note that all the problems occur repeatedly and can be found in the first section marked:</p><p>&#160;&#160; *******************&#160; Inbound&#160; ********************</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The smaller section marked:</p><p>&#160;&#160; ********************&#160; Outbound&#160; ********************</p><p>can be ignored as it only contains the startup/config for the RA, the managed connection connection factories, and the endpoints.&#160; (There are no connections created/manipulated in that section.)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The timestamps in the log summary are formatted:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @&lt;entry-time-millis&gt;..&lt;exit-time-millis&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>or in the case of "still running" methods just:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @&lt;entry-time-millis&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and those times can be used to quickly locate full trace information from the log (at entry time: parameters, at exit-time: exceptions, returned values, at both: call-stack, thread, target object, etc.).&#160; Time stamps are not guaranteed unique so if there may be more than one matching time stamp in the full log, in which case the combination of direction, class, method and invocation-instance can be used.&#160; (It is always unique so long as there is only a single run recorded in the log, which is the case here.)&#160; The general format is:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; [direction]:[class].[method]([params]) [result/status] #[invocation-instance]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Direction is "in" when anyone calls the RA, and "out" when the RA calls anyone.&#160; Some examples:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; out:WorkManager.startWork(endpointThread0) -&gt; 6 #1 @1362075147968..1362075147979</p><p>&#160;&#160; in:xaResourceWrapper2.start(xid5,2097152) threw #8 @1362075193570..1362075193577</p><p>&#160;&#160; out:MessageConsumer.receive(15000) still running #22 @1362075225203</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>(The first returned the value 6.&#160; The second threw an exception.&#160; The third was still running at the time the log file is grabbed.)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Indent is used to show call nesting.&#160; Calls are grouped by thread, and by endpoint for inbound.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>For improved readability the log summary uses short names for Xids and many RA objects.&#160; The mapping from the short names used in the log summary to the original/long names uses in the full log is in the section marked:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; ********************&#160; Legends&#160; ********************</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Also attached is the "intermediate file" tempm.int.&#160; It contains all "INFO&#160; [STDOUT]" and "INFO&#160; [stdout]" entries from the full log, but with extraneous data added by the app-server stripped out, and with any corruption/intermixing of individual log records (due to the app-server chopping them up into bits and emitting the bits from different threads) undone.&#160; The log summary is created from the contents of this intermediate file, so everything referenced by the log summary can be found in the intermediate file, and the intermediate file is generally easier to read than the full log.</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/800169#800169">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>