0

Is it possible to modify a file inside OSGi bundle (the bundle is deployed to apache karaf) ? In other words, I want to marshall a java object into xml file in a deployed bundle. Is this possible?? Thanks

Karim G
  • 448
  • 3
  • 9

1 Answers1

1

No. The JAR file format is immutable, if you want to modify a file inside it then you need to create a new JAR.

Since this is OSGi you can then update the bundle.

Neil Bartlett
  • 23,743
  • 4
  • 44
  • 77