Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Container and Dependency Injection

 
Chris Logan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone.


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.


Chris
 
Sib Pete
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Chris Logan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?


Thanks for your attention.


Cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic