[jboss-dev-forums] [Design of POJO Server] - Re: DU cannot supply own demands?

scott.stark@jboss.org do-not-reply at jboss.com
Wed Nov 26 12:51:36 EST 2008


They both are dependencies, just with a little different defaults. Based on the FAQ item I created when I was looking at the difference before, it should be started but not installed:

Q8 What is the difference between depends and demand elements?

A8: depend is a dependencyItem on the referenced bean reaching its Start state before the dependee will be allowed to reach its Start state.

Demand is a dependencyItem on the referenced bean reaching its Installed state before the dependee will be allowed to reach its whenRequired(state attribute of demand) state. 

This does not say exactly when injection happens though. Ales?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192584#4192584

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192584



More information about the jboss-dev-forums mailing list