<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Remote EJB lookup and invocation in JBoss AS 7.0.0
</h3>
<span style="margin-bottom: 10px;">
    new comment by <a href="http://community.jboss.org/people/kabirkhan">Kabir Khan</a> <a href="http://community.jboss.org/docs/DOC-16994#comment-7093">View all comments on this document</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>You would need maven (I am using 3.0.3) to build it initially. There are quite a few dependencies which I don't know how to set up using just ant. I just pushed a fix to git to set up the jboss repositories in the pom.xml, so I think it should work now with a new maven setup. Just check it out from git and then from the project root directory:</p><blockquote class="jive-quote"><p><span style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;">/path/to/maven/installation/bin/mvn install <br/></span></p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Since the tests use JMS make sure you build it against a server started using (since the default profile does not have JMS):</p><blockquote class="jive-quote"><p><span style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;">standalone.sh --server-config=test<br/></span></p></blockquote><p>Or to not bother with tests</p><p><span style="font-family: arial, helvetica, sans-serif;"><blockquote class="jive-quote"><p>/path/to/maven/installation/bin/mvn install -Dmaven.test.skip=true</p></blockquote></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Once you have the project built, you can probably just include target/jboss-as-remote-via-jmx-7.0.0-SNAPSHOT.jar (or the compiled classes are also available in target/classes) and do a bit of work in ant to rename it to whatever.sar and add the META-INF/jboss-service.xml file and a META-INF/MANIFEST.MF containing:</p><blockquote class="jive-quote"><p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">Manifest-Version: 1.0</p><p style="margin: 0.0px 0.0px 0.0px 0.0px;">Dependencies: javax.jms.api,org.hornetq,javax.api</p><div class="jive-rendered-content"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></div><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>HTH</p></div>

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


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

</div>

</body>
</html>