Hi,

I have an OSGi bundle with a service Component, and in the @Activate method of that component I am getting some files using the DataFileProvider.

Problem is, one file is a resource of the same bundle, which has its Data-Files instruction. Quite often, when the component activates upon install, the resource is not found yet and activation fails. It works after stopping and restarting the component.

I guess it's because the provider for that bundle has not been created yet when @Activate is called on the component.

Is there a solution to this? I want to use the DataFileProvider for all files, as I cannot always assume to know if a certain file is provided by my bundle (suppose there is one with the same name and a higher priority elsewhere).

Thanks!

Alessandro

--
M.Sc. Alessandro Adamou

Alma Mater Studiorum - Università di Bologna
Department of Computer Science
Mura Anteo Zamboni 7, 40127 Bologna - Italy

Semantic Technology Laboratory (STLab)
Institute for Cognitive Science and Technology (ISTC)
National Research Council (CNR)
Via Nomentana 56, 00161 Rome - Italy


"As for the charges against me, I am unconcerned. I am beyond their timid, lying 
morality, and so I am beyond caring."
(Col. Walter E. Kurtz)

Not sent from my iSnobTechDevice

Reply via email to