OSGi had to introduce an additional API to cover this use case, because of the same issues
you are identifying.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189008#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...