I have file in Karaf server which is deleted after some time I don't know why. So I decide to run code to create the file before running the bundles that depends on it.
is that possible?
I have the code but I don't know where I can put it to run before bundle.
Some code to help saving my data source file before any bundles
For people who are struggling here is my founding solution implements BundleActivator and refrence it in pom as
<Bundle-Activator>org.ogra.bundle1.Activator</Bundle-Activator>