Results 1 to 5 of 5

Thread: Basic dm Server question

  1. #1
    Join Date
    Feb 2006
    Posts
    18

    Default Basic dm Server question

    Hello there,

    I've been reading about dm Server/OSGi. But there is this question that I just can find a simple a answer: What's the difference between Library and Bundle? Why one should use Import-Bundle instead of Import-Library and vice-versa?

    Regards,
    Thiago Souza

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    A library is a collection of bundles so instead of importing 15 spring bundles you can import 1 spring library giving you all the 15 bundles.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Feb 2006
    Posts
    18

    Default

    Hi,

    Thanks for your reply. I get it, very simple... But then, what would be the downside if importing all the 15 bundles instead of using a more fine-grained control?

    Regards,
    Thiago Souza

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    Its easier to forget a depend bundle, your manifest gets cluttered especially when using a lot of dependend bundles.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    Feb 2006
    Posts
    18

    Default

    Hi,

    Thanks for your support.

    Regards,
    Thiago Souza

Posting Permissions

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