0

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

asked Jun 7, 2023 at 11:07

1 Answer 1

0

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>

Refrence: https://medium.com/@udayogra/write-simple-karaf-osgi-bundles-which-interact-with-each-other-in-eclipse-in-10-minutes-46c1bed0b460

answered Jun 8, 2023 at 7:46
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.