Hi,
Yeah, using osgi service is preferred solution.
Freeman
On 2011-5-7, at 上午1:59, Achim Nierbeck wrote:
Hi Triet,
I guess it's ok but still a workaround.
I strongly suggest you do refactor your application to use services
instead of relying on
packages/Classes of your second Bundle. If you reference Services
it's quite
easy to make sure your "consumer" waits till the service is available.
Regards, Achim
Thanks, Freeman.
I created a feature including Bundle B giving a start-level of 50
and set
the feature to be the first feature in the featuresBoot in
org.apache.karaf.features.cfg. That seems to solve the problem.
Is this a
solution I can rely on?
Regards,
Triet
--
View this message in context:
http://karaf.922171.n3.nabble.com/ClassNotFoundException-problem-which-resolved-after-restarting-Karaf-tp2906583p2908859.html
Sent from the Karaf - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference