0

I have unsuccessfully tried to find any kind of documentation about using OSGi bundles as a Utility jars in a Websphere application.

I am writing some common classes to be used across the organisation which depend on some third party libraries like log4j, commons-lang etc. I would like to create an OSGi bundle for the utility which can be used by different websphere applications as utility jars like other dependent jars, but for this one I wouldn't need to add its dependent jars to every application that uses the utility I am creating.

I have found OSGi tutorials, but nothing about using them in simple websphere app.

How can I achieve this? Are there any tutorials or documentation that will guide me in how to do this?

adbdkb
  • 1,897
  • 6
  • 37
  • 66

2 Answers2

0

Likely you need maven and build jars with dependencies: How can I create an executable JAR with dependencies using Maven?

Community
  • 1
  • 1
user3159253
  • 16,836
  • 3
  • 30
  • 56
  • I cannot use Maven. But the link you provided also doesn't seem to be creating an OSGi bundle. I am specifically looking to create OSGi bundle and using it for the purposes mentioned above, if that is possible. – adbdkb Feb 06 '14 at 09:44
  • Well, maven [can build OSGi bundles](http://wso2.com/library/tutorials/develop-osgi-bundles-using-maven-bundle-plugin/), there's [a plugin](http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html) for it. But if you can't go with maven, then, probably I don't have an instant answer. – user3159253 Feb 06 '14 at 10:00
0

As far as I know OSGi bundle contents can never be seen outside the OSGi framework. So unless websphere does something special here this can not work.

Christian Schneider
  • 19,420
  • 2
  • 39
  • 64