mirror of https://github.com/apache/activemq.git
removed some logging
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@546483 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a6cb80ceb0
commit
45f6a87244
|
@ -21,6 +21,8 @@ import org.apache.activemq.broker.BrokerFactoryHandler;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.xbean.spring.context.ResourceXmlApplicationContext;
|
import org.apache.xbean.spring.context.ResourceXmlApplicationContext;
|
||||||
import org.apache.xbean.spring.context.impl.URIEditor;
|
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.beans.BeansException;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
@ -38,6 +40,7 @@ import java.net.MalformedURLException;
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
public class XBeanBrokerFactory implements BrokerFactoryHandler {
|
public class XBeanBrokerFactory implements BrokerFactoryHandler {
|
||||||
|
private static final transient Log log = LogFactory.getLog(XBeanBrokerFactory.class);
|
||||||
|
|
||||||
static {
|
static {
|
||||||
PropertyEditorManager.registerEditor(URI.class, URIEditor.class);
|
PropertyEditorManager.registerEditor(URI.class, URIEditor.class);
|
||||||
|
@ -76,7 +79,8 @@ public class XBeanBrokerFactory implements BrokerFactoryHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ApplicationContext createApplicationContext(String uri) throws MalformedURLException {
|
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;
|
Resource resource;
|
||||||
File file = new File(uri);
|
File file = new File(uri);
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
|
|
Loading…
Reference in New Issue