Q: MyBatis Logging in Websphere Shared Library How can I get mybatis to log the sql statements when it is being used in a shared jar?  The applications that use that shared app are using log4j so I've tried calling org.apache.ibatis.logging.LogFactory.useLog4JLogging(), but that didn't help.
I've also tried setting the websphere log detail levels to "all" for the different mybatis classes and java.sql classes, but that didn't help either.
Thanks in advance.

A: I've always used the JDK logging API in Portal before (and it's what I would recommend to use for new development). But I think setting up Log4J in a portlet/shared lib on Portal would be the same to setting it up for any WAS application. Nothing should have to be special about Portal compared to just WAS. 
With that said though, I've got a few links you could try looking at to help get you on the right path for using Log4J.
http://www.alexander-bown.com/2009/08/using-commons-logging-1-1-with-log4j-on-websphere-6-0/
log4j not working in WebSphere
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14045904
