Reputation: 4411
I am using OSGi component factory concept in my project which works as expected. Please find the steps I've done.
Steps:
Login into karaf using ssh command[since it is not a root user so I have created an instance in karaf].
Executed scr:list. It displays the services which I have deployed. Since I have used component factories objects are created by OSGi framework and works as expected.
While shutdown karaf is stopped, deactivate method is getting called and the corresponding java process is getting killed. A new process is getting created once I starts karaf process again[I have verified the same by checking the PID of the java process]. I have raise this question for the below reasons
Environment: RHEL 6.5
Apache-karaf : 3.0.3
JRE : 1.7-u 79
Upvotes: 1
Views: 280
Reputation: 19606
It might be a known bug. I assume you are creating a default config using a feature file? This seems to be broken in current karaf versions for managed service factories. So if this is the case then avoid to define a default config in the feature file.
Upvotes: 1