Hi Dmitriy, did you try to use a TCCL:
Thread.currentThread().getContextClassLoader() ? Regards JB On 08/08/2012 01:19 AM, dtserekhman wrote:
Hi, I need to access my osgi bundle's class loader so I can easily access resource files that it contains. I was wondering if there is some "ref" bean that I can use inside of my bundle's blueprint.xml so I can pass it in as a property to my defined bean? For example, I tried ref="blueprintBundle". However, calling getClass().getClassLoader() on the returned Bundle instance appears to return framework's class loader and not the class loader for this specific osgi bundle in context. Any help is much appreciated! Thanks, Dmitriy. -- View this message in context: http://servicemix.396122.n5.nabble.com/How-to-access-bundle-s-class-loader-from-its-blueprint-tp5714099.html Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
-- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
