On 3/7/07, mario.buonopane@accenture.com wrote:
I have more than one application developed with same version of
shale/myfaces/tomahawk. Is it correct install these libraries in "Shared
Libraries" not remove them from WEB-INF/lib of each application?
It depends on your situation. Installing the libraries as shared inside the
server definitely makes your WAR files smaller and therefore likely to
deploy a little faster. On the other hand, you will be requiring that all
of the co-installed applications use the same versions of these
dependencies, rather than potentially being able to upgrade them

One thing to watch out for -- some libraries have been known to have quirks
when installed in as a shared library, due to the fact that the class loader
hierarchy is changed. The fundamental issue is that it's easy to write code
that assumes application classes are loaded by the same class loader that
loaded your class. That's true if your class was in /WEB-INF/lib but not
true if you install your class in a shared library (your class loader will
be a parent of the webapp class loader). The simplest way to find out
whether this works is to try it.



This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete the
original. Any other use of the email by you is prohibited.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupusers @
postedMar 8, '07 at 7:49a
activeMar 8, '07 at 5:24p



site design / logo © 2018 Grokbase