开发者

Refer shared resources in EAR from different WARs

开发者 https://www.devze.com 2023-01-20 00:38 出处:网络
I have an 开发者_JAVA百科EAR with multiple WARs in it and each WAR has same set of image/css/js folders.

I have an 开发者_JAVA百科EAR with multiple WARs in it and each WAR has same set of image/css/js folders.

Is it possible to take out the image/css/js folders and place them in EAR and then refer those files in all WARs?

Or is there a possibility to create another utility WAR which will hold all these shared resources and specific WARs will just load image/css/js from this utility.war ?

Any other solution or suggestion is also welcome.

Regards, Satya


Although we don't use EARs, i can give you a hint on how to reuse resources. We're using the Apache Wicket framework, where resources are loaded from the Classpath and not from the filesystem. That means, they can be packaged into a JAR file - which can then be reused in the various .WAR files of yours.

0

精彩评论

暂无评论...
验证码 换一张
取 消