Jboss 4.2.3 custom shared lib

时间秒杀一切 提交于 2019-12-11 04:45:09

问题


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.



来源:https://stackoverflow.com/questions/12161991/jboss-4-2-3-custom-shared-lib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!