>>>>> David Jencks <[email protected]>:
> I don’t understand the relationship between the DS component and the
> jdbc-config. Is the DS component configured so that when it’s
> activated it knows how to do the http call, and then when the
> jdbc-config calls it it already has the desired information?
That was my intent, yes.
> If that is the case, you could perhaps have the DS component not
> expose the prehook service but rather do the http call (in a separate
> thread, please, to not delay other startup) and if successful register
> the preHook service “by hand”.
Hm... maybe...?
How about:
1. Starting the HTTP request in a separate thread from the constructor
of the DS component and clearing a semaphore if and only if, the
HTTP request is successfully completed
2. Let the activate method of the DS component block on the semaphore
and only complete if the semaphore is released
?