OK, I've fixed this problem by:
* changing when the @Initialized event occurs
* introducing a new @Deployed event at the end of the deployment
* removing the validate() method from Manager (no longer needed)
Take a look at chapter 12, esp. 12.1 and 12.5.
On Fri, Jan 2, 2009 at 4:33 PM, Gavin King <gavin(a)hibernate.org> wrote:
But the problem is that it doesn't know *when* to validate.
Validation
can't be performed until *all* Beans have been registered.
Hum, I now see that there's a problem with the current definition of
the @Initialized Manager event - it actually needs to happen *before*
deployment problems are validated and thrown. Or perhaps there should
be two events? @Initialized Manager and @Deployed Manager.
Lucky we didn't let that slip through!
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org