Jboss 4.2.3 custom shared lib

2019-08-14 06:55发布

问题:

I am in the process of moving the shared libraries to some custom jboss lib folder. Right now as I see, libs are placed under

1)Jboss/lib folder

2)Jboss/server/FM/lib

3)WebInf/Lib in the webapp's

Now I want to move some of the libs which are shared by the webapp's in shared lib but not under jboss/server/FM/lib as I want them to at separate folder something like below:

jboss/server/FM/lib/custom.

I would still like libraries to loaded from Jboss/server/Fm/lib as well. Is there any way to do in Jboss 4.2.3 I had a look at the similar questions on stackoverflow but I couldnt find any satisfactory answer.

Thanks

回答1:

Just add in JBoss/server/TM/conf/jboss-service.xml after line

   <classpath codebase="${jboss.server.lib.url:lib}" archives="*"/>

another line

   <classpath codebase="${jboss.server.lib.url:lib}/custom" archives="*"/>

and restart.