JBoss Community

Remote EJB lookup and invocation in JBoss AS 7.0.0

new comment by Kabir Khan View all comments on this document

Hi,

 

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:

/path/to/maven/installation/bin/mvn install

 

Since the tests use JMS make sure you build it against a server started using (since the default profile does not have JMS):

standalone.sh --server-config=test

Or to not bother with tests

/path/to/maven/installation/bin/mvn install -Dmaven.test.skip=true

 

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:

Manifest-Version: 1.0

Dependencies: javax.jms.api,org.hornetq,javax.api

 

 

                   

 

HTH