[weld-dev] clarification of AfterDeploymentValidation

Mark Struberg struberg at yahoo.de
Fri Jan 14 16:09:31 EST 2011


Hi!

I need to trigger a task once the whole CDI container got started, and I'm not sure  if the AfterDeploymentValidation can be used for this. Basically what I like to do is to warm-up & initialise CDI based services when the server has been started.

The AfterDeploymentValidation system event is defined as:

"The container must fire a third event after it has validated that there are no deployment problems and before creating contexts or processing requests."

Thus especially the part "before creating contexts" is a bit unclear. Does this mean that no @ApplicationScoped, etc beans are available yet in this phase?

If so, do we like to introduce a new AfterServerStart event?

LieGrue,
strub


      


More information about the weld-dev mailing list