Hi, we are building a platform which allow to deploy and execute OSGI 
components. 

Those OSGI components are developed by our customers and we do not have control 
one those components.
The application is a JEE one and is deployed inside JBoss AS, we also use an 
embedded Felix container.

We have encounter problems when OSGI components do things like that in their 
code: 

  File file = new File("relative_path/myfile.txt"); 

This return a file which point to %JBOSS_HOME%/relative_path/myfile.txt. 
This seems perfectly normal because OSGI delegate Class Loading for 'java.*' 
classes used to the parent Class Loader. 

So, how is it possible to have a path to the Bundle location (we use unzipped 
bundles) instead of %JBOSS_HOME% by calling new File("relative_path") ?
Is it possible to force OSGI to load delegate the Class Loading for 
java.io.File classes ? 

Thanks, 


Baptiste



                                          
_________________________________________________________________
Découvrez toutes les possibilités de communication avec vos proches
http://www.microsoft.com/windows/windowslive/default.aspx

Reply via email to