Results 1 to 2 of 2

Thread: Bundle class sharing and reloading

  1. #1
    Join Date
    Oct 2008
    Posts
    0

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default 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.

    Rob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •