Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

EJB Container and Dependency Injection

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic