camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r749574 - /camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java
Date Tue, 03 Mar 2009 10:04:35 GMT
Author: ningjiang
Date: Tue Mar  3 10:04:34 2009
New Revision: 749574

URL: http://svn.apache.org/viewvc?rev=749574&view=rev
Log:
CAMEL-1412 using the right class loader to load the default queue browe strategy

Modified:
    camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java

Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java?rev=749574&r1=749573&r2=749574&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java
(original)
+++ camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java
Tue Mar  3 10:04:34 2009
@@ -460,7 +460,7 @@
      */
     protected static QueueBrowseStrategy tryCreateDefaultQueueBrowseStrategy() {
         // lets try instantiate the default implementation
-        Class<?> type = ObjectHelper.loadClass(DEFAULT_QUEUE_BROWSE_STRATEGY);
+        Class<?> type = ObjectHelper.loadClass(DEFAULT_QUEUE_BROWSE_STRATEGY, JmsComponent.class.getClassLoader());
         if (type == null) {
             LOG.warn("Could not load class: " + DEFAULT_QUEUE_BROWSE_STRATEGY
                      + " maybe you are on Spring 2.0.x?");



Mime
View raw message