On Dec 23, 2007, at 12:13 PM, Jacek Laskowski wrote:

On Dec 23, 2007 8:10 PM, David Blevins <[EMAIL PROTECTED]> wrote:
Those are in the javaee 5 schema document, along with ejb-ref and
others.

Yes, there are really. Unbelievable. I would never think of looking up
pre-destroy and post-construct in jndiEnvironmentRefsGroup. How did
they come up with it? (Our Dave B is in "they" too ;-))

:)

Well post construct was added in conjunction with dependency injection (which is driven by jndi refs). You inject, inject, inject then you have to give them an opportunity to deal with those values prior to putting them in the runtime state, so PostConstruct (which was nearly called a bunch of other things before we decided on PostConstruct). Schema wise it think it was more due to the fact that you can't have injection without post-construct that those elements got thrown in. @Resource, @PostConstruct, @PreDestroy where all thrown in the same package too.

-David

Reply via email to