The boot delegation property can be modified in etc/config.properties or overriden in etc/custom.properties. Can you give a bit more detail on how to use JNDI ? I'm not sure to understand why the package is used but not directly referenced.
On Fri, Nov 5, 2010 at 10:35, ext2 <x...@tongtech.com> wrote: > Hi: > When I using jndi in osgi, the "javax.naming" package is required. > But because "javax.naming" package is not direct refereced in the java's > source code(; So the generated bundle's Import-Package header doesn't > contains "javax.naming" package; > Although the karaf's etc/jre.properties file could define > "javax.naming" to be exportable from boot class loader. But because we > doesn't declare import for "javax.naming" package in bundle,so a > ClassNotFound Exception will still occurs; > So we want the package "javax.naming" which could be used, even > there is not import declaration in bundle; > To support this, I can only define > org.osgi.framework.bootdelegation system property in karaf's startup > script; > So I am wondering if karaf could support a configure file which > allow we configure the " org.osgi.framework.bootdelegation" ? if so , it's > easy to use control boot delegation; > > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com