Do i need to supply a custom ClassLoader ? Thinking out loud this does not appear to be the right approach because inside the classloader one does not know the required version.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Given that the loading mechanism essentially works with an URL, I would suggest to
try a custom URL handler. Logically you will need to load and activate it before loading any bundles using this handler, otherwise I think it should work.
See the “URL Handlers Service Specification”, R4 OSGi Core Specification.
Glassfish is using this approach to install webapp bundles btw.