Several applications in an organization use a common Java library, commom.jar. Two applications App1 and App2 have their own shared libraries shlib1.jar and shlib2.jar that reference common.jar. Which deployment method allows for the most reuse of the Java Library?
Consider a scenario when you want to develop a set of common resources and make them available to multiple applications.
If you want to deploy and manage just one copy of those common resources, use a shared library. A shared library can be deployed directly to an integration server. Any application can reference the resources in that deployed shared library. If that shared library is updated, the changes are immediately visible to all referencing applications.
If you want each application to use a different version of the contained resource, use a static library. Each application that references that static library is deployed with its own private copy of that library. If a static library is updated, each application that references it must be repackaged and redeployed with the updated static library.
Currently there are no comments in this discussion, be the first to comment!