"iit" wrote : 
  | Any hints?
  | Thanks,
  | Andreas Mueller
  | (SwiftMQ)
I see this code setting the logger on the ManagedConnectionFactory 

  | // Give it somewhere to tell people things
  |       String categoryName = 
poolingStrategy.getManagedConnectionFactory().getClass().getName() + "." + 
jndiName;
  |       Logger log = Logger.getLogger(categoryName);
  |       PrintWriter logWriter = new LoggerPluginWriter(log.getLoggerPlugin());
  |       try
  |       {
  |          
poolingStrategy.getManagedConnectionFactory().setLogWriter(logWriter);
  |       }
  |       catch (ResourceException re)
  |       {
  |          log.warn("Unable to set log writer '" + logWriter + "' on " + 
"managed connection factory", re);
  |          log.warn("Linked exception:", re.getLinkedException());
  |       }
  | 
It is from org.jboss.resource.connectionmanager.BaseConnectionManager2 .
http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/main/org/jboss/resource/connectionmanager/BaseConnectionManager2.java
Looks to me that you will need to implement  a org.jboss.logging.LoggerPlugin  
interface for this . The implementation class should have the naming as defined 
here 
poolingStrategy.getManagedConnectionFactory().getClass().getName() + "." + 
jndiName

Where is the huge log information getting populated right now , the default 
should be going in the server log ?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121914#4121914

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121914
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to