Our application's EAR has War file for web application and JAR for EJB module. It uses apache, struts, json, pdf, xmls, etc dependencies from external directories (not part of code base).
Currently these dependencies configured in run.bat using classpath references. It works find with JBoss 4.0.3 server.
Can I refer these external JARs same way in JBoss AS 7.1.1.
What is the best way to refer dependencies in JBoss AS 7.1.1.
The best way is probably to set <library-directory>lib/</library-directory> in the META-INF/application.xml in the EAR and copy the JARs there. As an optimization you can move the ones that are only needed in the WAR to WEB-INF/lib inside the WAR.