<!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;">
    Integration of updated jboss-ejb-client into jboss-client.jar?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/sumitsu">Branden Smith</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/734387#734387">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I've created a fork of the <a class="jive-link-external-small" href="https://github.com/jbossas/jboss-ejb-client"><strong>https://github.com/jbossas/jboss-ejb-client</strong></a> project tin an effort to resolve a thread-synchronization issue which arises when setting EJB invocation properties at runtime rather than by jboss-ejb-client.properties.&#160; Some discussion of the issue I'm trying to resolve is here:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a class="jive-link-message-small" href="https://community.jboss.org/message/724430#724430"><strong>https://community.jboss.org/message/724430#724430</strong></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>(The github fork is here: <a class="jive-link-external-small" href="https://github.com/sumitsu/jboss-ejb-client">https://github.com/sumitsu/jboss-ejb-client</a>, but I've not yet checked in any new code.)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>To test my modifications, I'm trying to integrate the EJB-client JAR produced by Maven into the client jar supplied with AS7 (<strong>jboss/bin/client/jboss-client.jar</strong>) by replacing the latter's contents under <strong>org/jboss/ejb/client</strong> with the classes packaged by the jboss-ejb-client POM.&#160; When I try to invoke an EJB, however, I'm getting the following Exception:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: courier new,courier; color: #ff0000;">Exception in thread "Thread-0" java.lang.ExceptionInInitializerError</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at org.jboss.ejb.client.EJBClient.&lt;clinit&gt;(EJBClient.java:39)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at org.jboss.ejb.client.naming.ejb.EjbNamingContext.doCreateProxy(EjbNamingContext.java:140)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:113)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:96)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at javax.naming.InitialContext.lookup(InitialContext.java:392)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at test.timeouttestclient.RemoteStallClient.stall_AS7props(RemoteStallClient.java:134)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at test.timeouttestclient.RemoteStallClient.run(RemoteStallClient.java:145)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">Caused by: <strong>java.lang.IllegalArgumentException: Invalid logger interface org.jboss.ejb.client.Logs (implementation not found)</strong></span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at org.jboss.logging.Logger.getMessageLogger(Logger.java:2250)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; at org.jboss.ejb.client.Logs.&lt;clinit&gt;(Logs.java:50)</span></p><p><span style="font-family: courier new,courier; color: #ff0000;">&#160;&#160;&#160; ... 7 more</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thinking that it was some version discrepancy with between the version of jboss-logging supplied with the AS 7.1.1 client and the version required by the most recent jboss-ejb-client revision, I also tried replacing the classes in the JBoss client under org/jboss/logging directory with those in the 3.1.0 JAR specified by the jboss-ejb-client POM, to no effect.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Could someone guide me as to how to update the JBoss AS 7.1.1.Final client with the most recent version of jboss-ejb-client, so that I can test my modifications?&#160; Please bear with me (and let me know) if I'm doing something wrong procedurally; this is my first attempt to modify/fork any JBoss code.&#160; If there's some other way in which I should be rebuilding the JBoss AS client or testing my modifications, please advise.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks!</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/734387#734387">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>