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
Asked
Active
Viewed 93 times
1 Answers
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
-
Thanks for your answer! Do you have any helpfull link showing how can I apply your solution? – Karim G Jan 10 '16 at 12:10