>>>>> Steinar Bang <[email protected]>:

> So I created a bundle project with a PreHook java class, and in the
> feature.xml added a jdbc-config feature that creates the datasource and
> requires the PreHook feature.

> And then I created an integration test that loads the jdbc-config
> feature.

> And according to the karaf.log this just loads all features and then
> stops.

> What's needed to actually run the PreHook?

> Do I need to create another feature that requires the jdbc-config
> feature and expects a DatataSource service?

(rookie copy/paste mistake!  I forgot to match the name in the
@Component annotation with the ops4j.preHook config value in
jdbc-config)

Reply via email to