Search code examples
javaosgipojo

Pojos inside OSGI bundle


On an OSGI aplication is it ok to put the application Pojos inside a Bundle and access them through it? I mean is it a good techique to have a Bundle only for the application pojos?


Solution

  • Just think of a scenario your pojo bundle fails getting loaded, because of say any XYZ reason. doesn't it mean all dependent bundles/functionality will fail??

    OSGi is for making things modular and a module as far as my knowledge is concern, is a piece of code which can do one single thing alone or say with least dependency.