Re: Getting resources from other OSGi Bundle

2017-06-22 Thread Guillaume Nodet
Note that getResource always return null for fragments ... 2017-06-22 11:51 GMT+02:00 Dominik Marciniszyn < marciniszyn.domi...@gmail.com>: > Hi, > > I have two osgi bundles and I would like to get some resources files from > one bundle to another. I've used BundleContext to get the second

Re: Getting resources from other OSGi Bundle

2017-06-22 Thread James Carman
Oftentimes you can avoid it entirely. What is your use case? On Thu, Jun 22, 2017 at 6:07 AM Dominik Marciniszyn < marciniszyn.domi...@gmail.com> wrote: > Hi, > > I have two osgi bundles and I would like to get some resources files from > one bundle to another. I've used BundleContext to get

Re: Getting resources from other OSGi Bundle

2017-06-22 Thread Grzegorz Grzybek
Can you share your test project via github? It should work fine... regards Grzegorz Grzybek 2017-06-22 11:51 GMT+02:00 Dominik Marciniszyn < marciniszyn.domi...@gmail.com>: > Hi, > > I have two osgi bundles and I would like to get some resources files from > one bundle to another. I've used

Getting resources from other OSGi Bundle

2017-06-22 Thread Dominik Marciniszyn
Hi, I have two osgi bundles and I would like to get some resources files from one bundle to another. I've used BundleContext to get the second bundle by ID. Then I use getResource() method, pass the path parameter but always got null. Sample code I used: BundleContext context =