Results 1 to 2 of 2

Thread: DM Server Bundles class loader

  1. #1
    Join Date
    Mar 2010
    Posts
    28

    Default DM Server Bundles class loader

    Hi,

    I'm trying to understand how DM Server 2.0.X load classes of deployed bundles.

    Could someone refer me to relevant documentation.

    Thanks,
    Pavel

  2. #2
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    dm Server follows standard OSGi class loading semantics (except for the way Thread Context Class Loaders are set up - see the Virgo wiki).

    Please see the modularity chapter of the OSGi 4.2 core spec from http://www.osgi.org.

    Essentially there is one class loader per bundle. Certain packages, including java.*, are "boot" delegated to the application class loader. Imported packages are delegated to their exporting bundle. For require-bundle, things are more complicated and there's a search across "required" bundles and the bundle doing the load. Otherwise, the local bundle class path is used, which may incorporate the contents of any fragments attached to the bundle doing the load.

    All this is explained in quite a bit of detail in the OSGi core spec.
    Glyn Normington
    SpringSource

Posting Permissions

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