Blueprint does not set the thread context class loader. You can use the class loader of a class to load resources instead, or manually set the thread context class loader to that of the class being loaded.
2016-07-12 12:53 GMT+02:00 Lim, See Peng <[email protected]>: > Hi all, > > > > We noticed that when a bean is initialized in apache aries blueprint > context, it will use the LauncherAppClassLoader instead of bundle class > loader , hence it can’t access resources such as classes or file in a > bundle. > > > > I am trying to check the apache aries trunk source code and found out > there is a deprecated class > “org.apache.aries.blueprint.utils.BundleDelegatingClassLoader”. Is this > class used to delegating system class loader to bundle class loader? How > can we make a bean will always initialized using the bundle classloader in > blueprint context? > > > > Really appreciate your help on this issue. > > > > Thanks. > > > > Regards, > > See Peng > > > -- ------------------------ Guillaume Nodet ------------------------ Red Hat, Open Source Integration Email: [email protected] Web: http://fusesource.com Blog: http://gnodet.blogspot.com/
