I spent a lot of time looking for information about EJB container and DI but it was quite worthless because I found only brief infos about it. Can you help me and point some valueable articles or books about this topic (especially DI in EJB)? Thanks in advance.
I find Manning Publications EJB 3 In Action to be very informative and helpful in learning EJB 3. A book specific to DI is Dependency Injection by Dhanji R. Prasanna
Joined: Jan 31, 2011
Thanks for the reply Sib Pete.
I know about this books. Though, I found out Dependency Injection by Dhanji R. Prasanna too complex and as you wrote its limited to the conception of DI and moreover I want to learn about DI in the context of EJB architecture. I read EJB 3 In Action but it was quite time ago so I will reread the interesting to me parts.
In a mean time I came up with some questions I hope you can help me with those.
1) During the deployment configured (by annotations or deployment descriptors) components (session and md beans) are registered in EJB container - that's correct?
2) What is responsible for creating services/resources and where are they registered, is it also the EJB container?
3) Where/when the services, resources and components are bound to the JNDI?
4) In EJB we can inject all resources that are populated in the JNDI, am I right?