On 3/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
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
individually.

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.

Craig




Regards

Mario















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.

Reply via email to