maven - Do I need to create seperate OSGi bundles for each jar -
i want create osgi bundle log4j2. need use additional jars along log4j2 such log4j2-jcl, log4j2-jul, log4j2-web etc. want clarify confusions listed below this. not specific log4j2 i'm asking general procedure.
- do need create separate osgi bundles each jar or can use 1 bundle jars? (what best practice)
- how can know whether osgi bundles available these jars ? (so don't need re create bundles, can use existing ones)
i'm quite new osgi can please clarify these things no need specific log4j2.
thanks!
- do need create separate osgi bundles each jar or can use 1 bundle jars? (what best practice)
i recommend create 1 bundle per jar, if possible. gives greatest flexibility , makes sure each jar designed.
- how can know whether osgi bundles available these jars ? (so don't need re create bundles, can use existing ones)
just have @ manifest file.
if contains osgi metadata -> it's osgi bundle.
if doesn't contain osgi metadata -> it's not osgi bundle.
i think log4j jars provide osgi metadata (-> bundles), haven't double-checked.
Comments
Post a Comment