tag:blogger.com,1999:blog-34692233.post1896542618512557787..comments2023-05-09T12:02:11.783+01:00Comments on Mind the Gap: Equinox digraph ready for useGlynhttp://www.blogger.com/profile/08741529390385812080noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-34692233.post-25630406039831951072012-10-24T08:22:32.172+01:002012-10-24T08:22:32.172+01:00Thanks for you information. :)Thanks for you information. :)Anonymoushttps://www.blogger.com/profile/04145329732545771204noreply@blogger.comtag:blogger.com,1999:blog-34692233.post-34147049925880095392012-10-01T08:45:13.555+01:002012-10-01T08:45:13.555+01:00I suggested above that you use the BundleContext o...I suggested above that you use the BundleContext of the system bundle. If bc is your BundleContext, you can safely get the system bundle's context:<br /><br />bc.getBundle(0L).getBundleContext()Glynhttps://www.blogger.com/profile/08741529390385812080noreply@blogger.comtag:blogger.com,1999:blog-34692233.post-64264196801793798592012-10-01T08:30:01.523+01:002012-10-01T08:30:01.523+01:00The bundle context I'm getting from the start ...The bundle context I'm getting from the start method of a bundle.Anonymoushttps://www.blogger.com/profile/04145329732545771204noreply@blogger.comtag:blogger.com,1999:blog-34692233.post-5906069164419911582012-10-01T08:20:33.753+01:002012-10-01T08:20:33.753+01:00Which bundle's BundleContext did you use?Which bundle's BundleContext did you use?Glynhttps://www.blogger.com/profile/08741529390385812080noreply@blogger.comtag:blogger.com,1999:blog-34692233.post-23732262616785256172012-10-01T07:15:48.608+01:002012-10-01T07:15:48.608+01:00Hi Gyln,
I tried adding event listener. But the b...Hi Gyln, <br />I tried adding event listener. But the bundleChanged method is not get called when a bundle is installed or started. <br />For example, I'm creating a calss BundleEventListener which implements BundleListener and initializing that class and adding that using BundleContext.addBundleListener().<br /><br />In my context, I need to install the bundles with an event received from the framework which will invoke a method where I need to write the logic. So I'm using a singleton pattern java class to pass the bundle context from start method to the relevant method. <br /><br />I couldn't find where I'm missing here.Anonymoushttps://www.blogger.com/profile/04145329732545771204noreply@blogger.comtag:blogger.com,1999:blog-34692233.post-65058955838634323422012-09-27T14:53:36.430+01:002012-09-27T14:53:36.430+01:00@Hareesh - have you tried registering your bundle ...@Hareesh - have you tried registering your bundle listener using the system bundle's bundle context, e.g. using the systemBundleContext.addBundleListener(...)?Glynhttps://www.blogger.com/profile/08741529390385812080noreply@blogger.comtag:blogger.com,1999:blog-34692233.post-8996702978861277032012-09-27T12:54:06.319+01:002012-09-27T12:54:06.319+01:00I have used this feature to use in our system whic...I have used this feature to use in our system which using Axis2 services also. It works fine. :) <br />When I install a bundle out of kernel region with filters defined with all allowed namespace, the bundle getting started fine and working. I need to get the events in that region to initiate the Axis2 services from that new bundle. I was not able to get bundle events from a different region to the kernel region or the framework. But when I install the same bundle in the kernel region, it works fine. It would be great if I find where I'm missing. <br /><br />HareesanAnonymoushttps://www.blogger.com/profile/04145329732545771204noreply@blogger.comtag:blogger.com,1999:blog-34692233.post-76117332827146990192012-09-27T12:47:46.530+01:002012-09-27T12:47:46.530+01:00I tried to use this feature in our system which us...I tried to use this feature in our system which use Axis2 Services also. The region separation works fine.<br /> But when I install a bundle in another region which don't have all other kernel bundles included and define a filter with all visible name spaces, the bundle works fine without any problem. But I was not able to get the bundle events which I need to initiate Axis2 services from the kernel region. But it gives the events when I install all the bundles in one region. It would be great if I get to know where I'm missing.<br /><br />Hareesh<br /> Anonymoushttps://www.blogger.com/profile/04145329732545771204noreply@blogger.comtag:blogger.com,1999:blog-34692233.post-17155173989289405422011-09-03T08:38:55.121+01:002011-09-03T08:38:55.121+01:00Great to hear. Thanks for the feedback.Great to hear. Thanks for the feedback.Glynhttps://www.blogger.com/profile/08741529390385812080noreply@blogger.comtag:blogger.com,1999:blog-34692233.post-50970410435604865102011-08-29T11:45:28.266+01:002011-08-29T11:45:28.266+01:00I finally got the time to integrate region managem...I finally got the time to integrate region management into our runtime, and it is working just perfectly. We're using this essentially for a fully multi-tenant plugin system to Web applications. Thanks again for sharing this piece of work and especially for offering it as a separately consumable feature.<br /><br />RobertRobert Sauerhttps://www.blogger.com/profile/13221048997280751045noreply@blogger.com