Scheduler with JNDI Datasource

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Scheduler with JNDI Datasource

holger_s
Hi,

I'm trying to integrate the scheduler feature into karaf.

We're using the karaf-maven-plugin to create a distribution packate. The
scheduler feature is defined in the pom.xml as bootFeature.

This works fine with the RAMJobStore.

But if I configure a JDBC datasource via JNDI I run into a problem when
starting karaf.

The scheduler feature is activated before the jndi feature. The scheduler is
initialized immediately and since jndi is not available, the jndi url cannot
be resolved. Hence the initialisation fails and the scheduler cannot be
created.



It would help if the scheduler is started after the jndi feature - are there
any possibilities to control the start order?

Or even better: is there any possibility that the scheduler is created when
the jndi url is available?

Regards,
Holger



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html