Hmmm. Without looking at the code it would be difficult to tell the reason. Can you turn on XLevel tracing in your log4j.xml file? There is an example of how to do this in the log4j.xml in your conf directory.
Thanks a lot.I could find out that it was a threading issue in the resource adapter that I was using.It is certainly not a bug in Jboss.