0 Replies Latest reply on Nov 20, 2012 10:34 AM by wortner

    Adding separately deployed .jar files to other .ear's classpath...



      I have an ear, and inside of this ear I need to have on the classpath some jar's classes to be able to load them via Java ServiceLoader.

      I'd like to use the jBoss AS maven plugin for deploying or just directly copy the .ear and jars into deployments folder of jBoss 7 server.


      Is it possible that the ear will somehow see(be able to load them via ServiceLoader.load(class) call) the jar files??? So the jar files should act like "shared" library.


      And if it is possible, what exactly happens when I will un(re)deploy these .jars?


      Thanks for answer in beforehand.