Announcement Announcement Module
No announcement yet.
Bundle class sharing and reloading Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bundle class sharing and reloading

    I was just wondering if for example I have a bundle A, with a service interface returning a bean, called C1, and a bundle B who call bundle A and get some instances of C1. If I add a new field to class C1 and redeploy bundle A. What happen to the existing instance of C1 in bundle B ? Is bundle B restarted as well ? (I hope i'm clear enough)

  • #2
    Bundle class sharing and reloading

    If bundle B has a concrete dependency (a wire) on bundle A, then redeploying bundle A will cause bundle B to be restarted. So, in your example, if C1 is in package q, then B has a wire to A for q. Refreshing A will refresh B.

    Hope that helps.