camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lixunhuanmarry <8673...@qq.com>
Subject Re: OSGI, Camel, new ResourceXmlApplicationContext, But ...
Date Thu, 31 Jul 2014 06:38:33 GMT
Fixed and works fine on equinox, so does in Karaf ,i think.
Solution:
1.create a classloader ans set to
Thread.currentThread().setContextClassLoader
2.@Override
   public Enumeration<URL> getResources(String name)throws IOException
 searching all resources from bundleContext but current classloader
3.@Override
   public Class<?> loadClass(String classname) throws ClassNotFoundException
 loading class from bundleContext but current classloader



--
View this message in context: http://camel.465427.n5.nabble.com/OSGI-Camel-new-ResourceXmlApplicationContext-But-tp5754620p5754707.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message