Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • when to share jars

    1 answers - 1342 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    If you share log4j, wouldn't it mean that if two
    web-apps both use eg "com.foo.Bar", they cannot be
    configured to log to different logfiles and that the
    com.foo.Bar logger (with appenders) is shared between
    webapps?
    Tim Funk <funkman (AT) joedog (DOT) orgwrote:
    Never. I share jars. I wish I hadn't.
    When you upgrade JSTL, struts, etc - all get the
    upgrade for free - but that
    means ultra stable apps which haven't been touched
    in years may "magically
    break".
    [Exception - log4j I like have a common/lib
    log4j]
    -Tim
    Charl Gerber wrote:
    When do you share jars (struts, log4j, jstl, etc)
    for
    webapps in the common/lib directory and when does
    each
    app need its own "copy" of the jars?
    Log4j we've found by trail and error is better to
    have
    a jar per webapp, as the loggers seems to
    overwrite
    each other, but which commonly used jars (struts,
    jstl) can be shared?
    To unsubscribe, e-mail:
    tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail:
    tomcat-user-help (AT) jakarta (DOT) apache.org
    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
  • No.1 | | 2053 bytes | |

    I think so. But IIRC, if you have a log4j in common/lib and WEB-INF/lib - the
    WEB-INF/lib will be used for that webapp. So you can place logging in a
    different file for that webapp and class.

    -Tim

    Charl Gerber wrote:

    If you share log4j, wouldn't it mean that if two
    web-apps both use eg "com.foo.Bar", they cannot be
    configured to log to different logfiles and that the
    com.foo.Bar logger (with appenders) is shared between
    webapps?

    Tim Funk <funkman (AT) joedog (DOT) orgwrote:


    >>Never. I share jars. I wish I hadn't.
    >>
    >>When you upgrade JSTL, struts, etc - all get the
    >>upgrade for free - but that
    >>means ultra stable apps which haven't been touched
    >>in years may "magically
    >>break".
    >>
    >>[Exception - log4j I like have a common/lib
    >>log4j]
    >>

    Tim
    >>
    >>Charl Gerber wrote:
    >>
    >>

    When do you share jars (struts, log4j, jstl, etc)
    >>
    >>for
    >>

    webapps in the common/lib directory and when does
    >>
    >>each
    >>

    app need its own "copy" of the jars?

    Log4j we've found by trail and error is better to
    >>
    >>have
    >>

    a jar per webapp, as the loggers seems to
    >>
    >>overwrite
    >>

    each other, but which commonly used jars (struts,
    jstl) can be shared?
    >>


    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org

Re: when to share jars


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "Java"

EMSDN.COM