Sep 4th, 2012, 02:41 PM
common application context for multiple web apps
At my current job There are close to 20 different web applications as part of a single service. the applications are currently being deployed to weblogic 10.3 cluster as separate WAR files and they all include a common jar that contains common utilities and DAOs.
I wish to use Spring as the container for the common code and have it shared between the different apps.
Can anyone suggest the best recommended way to go about it? would a weblogic startup class that starts the common container work? how will each application access the common context? have it's own container in addition to the common one?
Sep 8th, 2012, 07:18 PM
Sounds like your have an EAR that has multiple web apps. In this case, you can define an EAR level application context of which is root context of each webapp in EAR, i.e. the common utilities and DAOs in the EAR level application context are visible and shared from each of your web apps within the same EAR.