servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lh...@apache.org
Subject svn commit: r643403 - in /servicemix/smx3/trunk: archetypes/servicemix-drools-service-unit/src/main/resources/archetype-resources/src/main/resources/ common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/
Date Tue, 01 Apr 2008 13:57:53 GMT
Author: lhein
Date: Tue Apr  1 06:57:37 2008
New Revision: 643403

URL: http://svn.apache.org/viewvc?rev=643403&view=rev
Log:
- more error logging for the AbstractXBeanDeployer
- added the util namespace to the drools archetype to not confuse users when trying to inject
beans

Modified:
    servicemix/smx3/trunk/archetypes/servicemix-drools-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
    servicemix/smx3/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java

Modified: servicemix/smx3/trunk/archetypes/servicemix-drools-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/servicemix-drools-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml?rev=643403&r1=643402&r2=643403&view=diff
==============================================================================
--- servicemix/smx3/trunk/archetypes/servicemix-drools-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
(original)
+++ servicemix/smx3/trunk/archetypes/servicemix-drools-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
Tue Apr  1 06:57:37 2008
@@ -18,6 +18,7 @@
 
 -->
 <beans xmlns:drools="http://servicemix.apache.org/drools/1.0"
+       xmlns:util="http://www.springframework.org/schema/util"
        xmlns:replaceMe="http://servicemix.apache.org/replaceMe">
 
   <drools:endpoint service="replaceMe:myRouter"

Modified: servicemix/smx3/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java?rev=643403&r1=643402&r2=643403&view=diff
==============================================================================
--- servicemix/smx3/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java
(original)
+++ servicemix/smx3/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanDeployer.java
Tue Apr  1 06:57:37 2008
@@ -102,8 +102,13 @@
             validate(su);
             return su;
         } catch (Throwable e) {
+            logger.error(e);
             if (applicationContext != null) {
-                applicationContext.destroy();
+                try {
+                    applicationContext.destroy();
+                } catch (Exception ne) {
+                    logger.error(ne);
+                }
             }
             // There is a chance the thread context classloader has been changed by the xbean
kernel,
             // so put back a good one



Mime
View raw message