From b9d303224620864b80c382ba9d28bc1e2d91237b Mon Sep 17 00:00:00 2001 From: James Strachan Date: Mon, 3 Jul 2006 15:23:32 +0000 Subject: [PATCH] removed dependency on XBeanBrokerService so that a regular Spring XML file can be used that just instantiates BrokerService directly to fix AMQ-790 git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@418790 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/xbean/XBeanBrokerFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 a6726b5827..91a2c178e4 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 @@ -39,9 +39,9 @@ public class XBeanBrokerFactory implements BrokerFactoryHandler { String uri = config.getSchemeSpecificPart(); ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(uri); - XBeanBrokerService broker = null; + BrokerService broker = null; try { - broker = (XBeanBrokerService) context.getBean("broker"); + broker = (BrokerService) context.getBean("broker"); } catch (BeansException e) { } @@ -51,7 +51,7 @@ public class XBeanBrokerFactory implements BrokerFactoryHandler { String[] names = context.getBeanNamesForType(BrokerService.class); for (int i = 0; i < names.length; i++) { String name = names[i]; - broker = (XBeanBrokerService) context.getBean(name); + broker = (BrokerService) context.getBean(name); if (broker != null) { break; }