Mail Archive Home | jotm List | July 2006 Index
| <-- Date Index --> | <-- Thread Index --> |
I am using jotm (1.4.3)/xapool(1.5.0) in tomcat 4.1.31. Both xapool/jotm are placed in common/lib. My server has multiple webapps and each one needs to log into separate log file and have separate log4j conf file. Previously we used to have log4j in WEB-INF/lib of each of the webapps but when we shifted to jotm/xapool we moved log4j into common/lib as jotm/xapool need logging facility. Now the problem arose that the last to load webapp's logger configuration was overwriting all the other webapps logger configurations. This was solved using classloader based repository selector (http://www.qos.ch/logging/sc.jsp). With this each webapp is having its own log configuration and application logs are working perfectly. The problem is with jotm/carols log messages, they are always going into first to load webapps log file. We need that jotm writes its logs based on the context from which its called. Meaning if webapp1 requests for user trasaction then jotm must log into webapp1's log. Xapool which is also placed in common/lib is writing logs as per context, is this a problem with the way jotm uses logger or is something wrong in my log4j configuration ? I looked at code of org.objectweb.jotm.TraceTm and noticed that it uses static Log instance >> public static Log jta = LogFactory.getLog(JOTM_LOG_PREFIX + ".jta"); Doesnt this mean that jotm will always use the logger of that webapp which does first lookup of jotm transaction resource ? Vinod
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.