3 Replies Latest reply on Jul 2, 2014 3:47 PM by Laura delli Paoli

    how to access a module in JBoss 7 from a war app?

    Fox Leung Newbie

      I have put a module (a jar file, say A) into JBoss 7's "modules/" folder correctly, and could execute it successfully using "java -jar jboss-modules.jar ...". Now I want to access A from my project, which would be deployed as a war.


      My questions are:

      1. how to compile my project without jar A in my project's /WEB-INF/lib? Because I want to access it as a module managed by JBoss, putting A in /WEB-INF/lib seems to defeat the purpose.

      2. Other than declaring "Dependencies:... " in manifest.mf, what else needs to be done?


      I've read the documents on https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7, but couldn't find the solution. It'd be great if I could be shown an example on how to do this.