Wednesday, October 10, 2012

Different lib directories of JBoss

Other folders are for different sorts of shared libs. For example, if you have 10 apps using same DB driver, there is really no reason to keep one db driver jar per application (i.e. 10 jars). In that case you can simply put it into jboss/server//lib.
  • jboss/server//lib: all libs here are shared between all apps in given server config
  • jboss/common/lib: shared between all server configs
  • jboss/lib: these are libs for server itself (if I am not mistaking, they are also on your app classpath)
  • jboss/lib/endorsed: this is the same as above, only if you put a lib here, it will always be found before similar lib in jboss/lib. The idea is similar to Endorsed Standards Override Mechanism of JDK
http://stackoverflow.com/questions/3064526/different-lib-directories-of-jboss

No comments:

Post a Comment