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
1 Answer 1
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>
Sign up to request clarification or add additional context in comments.
Comments
Explore related questions
See similar questions with these tags.
lang-java