activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r525538 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
Date Wed, 04 Apr 2007 15:31:40 GMT
Author: jstrachan
Date: Wed Apr  4 08:31:39 2007
New Revision: 525538

URL: http://svn.apache.org/viewvc?view=rev&rev=525538
Log:
added lifecycle hooks when auto-discovering components and endpoints

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java?view=diff&rev=525538&r1=525537&r2=525538
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
Wed Apr  4 08:31:39 2007
@@ -141,10 +141,12 @@
                     if (answer == null) {
                         Component component = componentResolver.resolveComponent(uri, this);
                         if (component != null) {
+                            ServiceHelper.startServices(component);
                             answer = component.resolveEndpoint(uri);
                         }
                     }
                     if (answer != null) {
+                        ServiceHelper.startServices(answer);
                         endpoints.put(uri, answer);
                     }
                 }



Mime
View raw message