From 45f6a87244ff0ffc0e70d7f1db33f10f21b42c12 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Tue, 12 Jun 2007 13:49:52 +0000 Subject: [PATCH] removed some logging git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@546483 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/xbean/XBeanBrokerFactory.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java b/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java index 4fdfc2dead..15ca98980f 100644 --- a/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java +++ b/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java @@ -21,6 +21,8 @@ import org.apache.activemq.broker.BrokerFactoryHandler; import org.apache.activemq.broker.BrokerService; import org.apache.xbean.spring.context.ResourceXmlApplicationContext; import org.apache.xbean.spring.context.impl.URIEditor; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.core.io.ClassPathResource; @@ -38,6 +40,7 @@ import java.net.MalformedURLException; * @version $Revision$ */ public class XBeanBrokerFactory implements BrokerFactoryHandler { + private static final transient Log log = LogFactory.getLog(XBeanBrokerFactory.class); static { PropertyEditorManager.registerEditor(URI.class, URIEditor.class); @@ -76,7 +79,8 @@ public class XBeanBrokerFactory implements BrokerFactoryHandler { } protected ApplicationContext createApplicationContext(String uri) throws MalformedURLException { - System.out.println("Now attempting to figure out the type of resource: " + uri); + log.debug("Now attempting to figure out the type of resource: " + uri); + Resource resource; File file = new File(uri); if (file.exists()) {