common resources within EAR shared by multiple WARs
843841Jul 13 2004 — edited Mar 4 2005
I am designing a relatively small enterprise application using IBM WebSphere Express 5.1 (Lite version). The way the application is packaged, or atleast how I want to package it, is to have two WAR files packaged under the single EAR. One WAR file corresponds to a publicly accessible site, and the other WAR corresponds to a secure section of the site, to be accessed via HTTPs.
A lot of images, text-based files like JavaScript, CSS and even JSPs (for header, footer, etc.) are common to both the WAR files. For maintenance reasons, I would like for these 'resource' files to be in a common area or in one of the WAR files, but also be referenced from the other WAR file.
I would like to know what is the possible and best way to store these common resource files. Keeping two copies, one in each WAR file, is what I do not want to do.
Can JSPs/servlets in one WAR file access JSP, HTML, CSS, JS, GIF, JPG, etc. in another WAR file? Is it recommended to maintain a third WAR file that contains only these resources, and is this even possible?
I would really appreciate all responses, and thank you all for reading/responding to this post.
--forum7