Author: gaohoward
Date: 2012-02-21 08:03:46 -0500 (Tue, 21 Feb 2012)
New Revision: 12154
Modified:
trunk/hornetq-spring-integration/src/main/java/org/hornetq/integration/spring/SpringBindingRegistry.java
Log:
fix sprint test failure
Modified:
trunk/hornetq-spring-integration/src/main/java/org/hornetq/integration/spring/SpringBindingRegistry.java
===================================================================
---
trunk/hornetq-spring-integration/src/main/java/org/hornetq/integration/spring/SpringBindingRegistry.java 2012-02-21
06:06:47 UTC (rev 12153)
+++
trunk/hornetq-spring-integration/src/main/java/org/hornetq/integration/spring/SpringBindingRegistry.java 2012-02-21
13:03:46 UTC (rev 12154)
@@ -1,6 +1,7 @@
package org.hornetq.integration.spring;
import org.hornetq.spi.core.naming.BindingRegistry;
+import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
/**
@@ -18,7 +19,16 @@
public Object lookup(String name)
{
- return factory.getBean(name);
+ Object obj = null;
+ try
+ {
+ obj = factory.getBean(name);
+ }
+ catch (NoSuchBeanDefinitionException e)
+ {
+ //ignore
+ }
+ return obj;
}
public boolean bind(String name, Object obj)
Show replies by date