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.

  1. do need create separate osgi bundles each jar or can use 1 bundle jars? (what best practice)
  2. 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!

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

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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -