You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2011/01/30 05:06:52 UTC
svn commit: r1065180 -
/activemq/activemq-apollo/trunk/apollo-jdbm2/src/main/scala/org/apache/activemq/apollo/broker/store/jdbm2/JDBM2Client.scala
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