activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1065180 - /activemq/activemq-apollo/trunk/apollo-jdbm2/src/main/scala/org/apache/activemq/apollo/broker/store/jdbm2/JDBM2Client.scala
Date Sun, 30 Jan 2011 04:06:52 GMT
Author: chirino
Date: Sun Jan 30 04:06:52 2011
New Revision: 1065180

URL: http://svn.apache.org/viewvc?rev=1065180&view=rev
Log:
Set the context classloader so that JDBM can find the app classes when in a weird container
like OSGi.

Modified:
    activemq/activemq-apollo/trunk/apollo-jdbm2/src/main/scala/org/apache/activemq/apollo/broker/store/jdbm2/JDBM2Client.scala

Modified: activemq/activemq-apollo/trunk/apollo-jdbm2/src/main/scala/org/apache/activemq/apollo/broker/store/jdbm2/JDBM2Client.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-jdbm2/src/main/scala/org/apache/activemq/apollo/broker/store/jdbm2/JDBM2Client.scala?rev=1065180&r1=1065179&r2=1065180&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-jdbm2/src/main/scala/org/apache/activemq/apollo/broker/store/jdbm2/JDBM2Client.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-jdbm2/src/main/scala/org/apache/activemq/apollo/broker/store/jdbm2/JDBM2Client.scala
Sun Jan 30 04:06:52 2011
@@ -162,6 +162,8 @@ class JDBM2Client(store: JDBM2Store) {
   }
 
   def start() = {
+
+    Thread.currentThread.setContextClassLoader(getClass.getClassLoader)
     import FileSupport._
 
     config.directory.mkdirs



Mime
View raw message