thats exactly what I've been trying to find out too for the past hour or so. I know that glassfish has an ACC that does exactly that. One can launch glassfish's ACC by saying:
appclient -client myClient.jar
I wish there were something similar in JBOSS to use DI annotations like @EJB
anyone have any clues?
AFAIK, in JBoss 4.x you just include the jars in the directory client of your jboss installation into you running classpath. You just execute your java class, and the client jars take care of the rest.